Class: MySpec

Inherits:
Spec::ExampleGroup show all
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

Instance Method Details

#should_fail_with_assertObject



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_shouldObject



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_assertObject



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_shouldObject



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

#testObject



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_ifyObject



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