rspec 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +23 -1
- data/Rakefile +11 -9
- data/bin/spec +0 -1
- data/lib/spec.rb +1 -0
- data/lib/spec/callback.rb +3 -0
- data/lib/spec/callback/callback_container.rb +60 -0
- data/lib/spec/callback/extensions/module.rb +24 -0
- data/lib/spec/callback/extensions/object.rb +33 -0
- data/lib/spec/expectations/diff.rb +10 -14
- data/lib/spec/expectations/extensions.rb +1 -3
- data/lib/spec/expectations/extensions/numeric.rb +6 -1
- data/lib/spec/expectations/extensions/object.rb +72 -18
- data/lib/spec/expectations/should/base.rb +27 -5
- data/lib/spec/expectations/should/have.rb +2 -2
- data/lib/spec/expectations/should/should.rb +5 -4
- data/lib/spec/mocks/error_generator.rb +23 -12
- data/lib/spec/mocks/message_expectation.rb +4 -0
- data/lib/spec/mocks/mock_handler.rb +9 -8
- data/lib/spec/rake/spectask.rb +2 -1
- data/lib/spec/runner.rb +0 -1
- data/lib/spec/runner/backtrace_tweaker.rb +1 -0
- data/lib/spec/runner/context_eval.rb +1 -1
- data/lib/spec/runner/formatter/base_text_formatter.rb +1 -1
- data/lib/spec/runner/formatter/html_formatter.rb +94 -74
- data/lib/spec/runner/option_parser.rb +5 -1
- data/lib/spec/runner/specification.rb +64 -37
- data/lib/spec/version.rb +3 -3
- data/vendor/{selenium → web_spec/selenium}/README.txt +0 -0
- data/vendor/{selenium → web_spec/selenium}/find_rspecs_home_page.rb +0 -0
- data/vendor/{selenium → web_spec/selenium}/rspec_selenium.rb +0 -0
- data/vendor/{selenium → web_spec/selenium}/start_browser_once.patch +0 -0
- data/vendor/{watir → web_spec/watir}/README.txt +2 -2
- data/vendor/web_spec/watir/find_rspecs_home_page.rb +27 -0
- data/vendor/{watir → web_spec/watir}/find_rspecs_home_page.txt +0 -0
- data/vendor/{watir → web_spec/watir}/rspec_watir.rb +13 -12
- data/vendor/web_spec/web_test_html_formatter.rb +8 -0
- data/vendor/web_spec/web_test_html_formatter_helper.rb +26 -0
- data/vendor/web_spec/web_test_html_formatter_osx_helper.rb +19 -0
- data/vendor/web_spec/web_test_html_formatter_win_helper.rb +14 -0
- metadata +19 -14
- data/lib/spec/expectations/extensions/inspect_for_expectation_not_met_error.rb +0 -15
- data/lib/spec/expectations/extensions/symbol.rb +0 -5
- data/lib/spec/runner/extensions/object.rb +0 -21
- data/vendor/watir/find_rspecs_home_page.rb +0 -21
@@ -1,21 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/rspec_watir'
|
2
|
-
|
3
|
-
context "Google's search page" do
|
4
|
-
|
5
|
-
setup do
|
6
|
-
@browser.goto('http://www.google.com')
|
7
|
-
end
|
8
|
-
|
9
|
-
specify "should find rspec's home page when I search for rspec" do
|
10
|
-
@browser.text_field(:name, "q").set("rspec")
|
11
|
-
@browser.button(:name, "btnG").click
|
12
|
-
@browser.should_contain("rspec.rubyforge.org") # should_contain_text is RSpec sugar
|
13
|
-
end
|
14
|
-
|
15
|
-
specify "should not find Ali G when I search for rspec" do
|
16
|
-
@browser.text_field(:name, "q").set("rspec")
|
17
|
-
@browser.button(:name, "btnG").click
|
18
|
-
@browser.should_not_contain("Ali G")
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|