Skip to content

Commit

Permalink
a commit about class RspesGreeter
Browse files Browse the repository at this point in the history
  • Loading branch information
zairl23 committed Oct 26, 2011
1 parent ef362db commit 3fb552a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/greeter_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#follow the book, just type 'class RspecGreeter ...'
# but rasie errors below:
#Failure/Error: greeter = RSpecGreeter.new
# uninitialized constant RSpec::Core::ExampleGroup::Nested_1::RSpecGreeter
# ./greeter_spec.rb:3:in `block (2 levels) in <top (required)>'
#so i add this below '< RSpec::Core::ExampleGroup', and it works.why?

class RSpecGreeter < RSpec::Core::ExampleGroup
def greet
"Hello Rspec!"
Expand Down

0 comments on commit 3fb552a

Please sign in to comment.