Class: MySpec
- Inherits:
-
Spec::ExampleGroup
- Object
- MySpec
- Defined in:
- lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb,
lib/gems/rspec-1.1.11/stories/resources/spec/example_group_with_should_methods.rb
Instance Method Summary collapse
- #should_fail_with_assert ⇒ Object
- #should_fail_with_should ⇒ Object
- #should_pass_with_assert ⇒ Object
- #should_pass_with_should ⇒ Object
- #test ⇒ Object
- #test_ify ⇒ Object
Instance Method Details
#should_fail_with_assert ⇒ Object
19 20 21 |
# File 'lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb', line 19 def should_fail_with_assert assert false end |
#should_fail_with_should ⇒ Object
11 12 13 |
# File 'lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb', line 11 def should_fail_with_should 1.should == 2 end |
#should_pass_with_assert ⇒ Object
15 16 17 |
# File 'lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb', line 15 def should_pass_with_assert assert true end |
#should_pass_with_should ⇒ Object
7 8 9 |
# File 'lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb', line 7 def should_pass_with_should 1.should == 1 end |
#test ⇒ Object
23 24 25 |
# File 'lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb', line 23 def test raise "This is not a real test" end |
#test_ify ⇒ Object
27 28 29 |
# File 'lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb', line 27 def test_ify raise "This is a real test" end |