Fix typos and whitespace

This commit is contained in:
Jake Worth 2014-03-31 17:10:27 -05:00
parent a94dfbc4d0
commit d49d3b7feb
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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?

View File

@ -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

View File

@ -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