mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix typos and whitespace
This commit is contained in:
parent
a94dfbc4d0
commit
d49d3b7feb
4 changed files with 5 additions and 5 deletions
4
Rakefile
4
Rakefile
|
@ -7,10 +7,10 @@ desc "Run all examples"
|
|||
RSpec::Core::RakeTask.new(:spec) do |t|
|
||||
t.rspec_opts = %w[--color]
|
||||
end
|
||||
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec_with_chrome) do |t|
|
||||
t.rspec_opts = %w[--color]
|
||||
#jruby buffers the progress formatter so travis doesnt see output often enough
|
||||
# jruby buffers the progress formatter so travis doesn't see output often enough
|
||||
t.rspec_opts << '--format documentation' if RUBY_PLATFORM=='java'
|
||||
t.pattern = './spec{,/*/**}/*{_spec.rb,_spec_chrome.rb}'
|
||||
end
|
||||
|
|
|
@ -118,7 +118,7 @@ module Capybara
|
|||
#
|
||||
# By default, Capybara will try to run webrick.
|
||||
#
|
||||
# @yield [app, port] This block recieves a rack app and port and should run a Rack handler
|
||||
# @yield [app, port] This block receives a rack app and port and should run a Rack handler
|
||||
#
|
||||
def server(&block)
|
||||
if block_given?
|
||||
|
|
|
@ -36,7 +36,7 @@ module Capybara
|
|||
def initialize(app, port=Capybara.server_port, host=Capybara.server_host)
|
||||
@app = app
|
||||
@middleware = Middleware.new(@app)
|
||||
@server_thread = nil # supress warnings
|
||||
@server_thread = nil # suppress warnings
|
||||
@host, @port = host, port
|
||||
@port ||= Capybara::Server.ports[@app.object_id]
|
||||
@port ||= find_available_port
|
||||
|
|
|
@ -12,7 +12,7 @@ describe 'capybara/rspec', :type => :feature do
|
|||
page.body.should include('Cookie set to test_cookie')
|
||||
end
|
||||
|
||||
it "...then it is not availbable in the next" do
|
||||
it "...then it is not available in the next" do
|
||||
visit('/get_cookie')
|
||||
page.body.should_not include('test_cookie')
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue