examples/movie_spec.rb in rspec-0.3.2 vs examples/movie_spec.rb in rspec-0.4.0
- old
+ new
@@ -7,15 +7,15 @@
def setup
@list = MovieList.new
end
def should_have_size_of_0
- @list.size.should_equal 0
+ @list.size.should.equal 0
end
def should_not_include_star_wars
- @list.should_not_include "Star Wars"
+ @list.should.not.include "Star Wars"
end
end
class OneMovieList < Spec::Context
@@ -25,19 +25,13 @@
star_wars = Movie.new "Star Wars"
@list.add star_wars
end
def should_have_size_of_1
- @list.size.should_equal 1
+ @list.size.should.equal 1
end
def should_include_star_wars
- @list.should_include "Star Wars"
+ @list.should.include "Star Wars"
end
-end
-
-if __FILE__ == $0
- runner = Spec::TextRunner.new($stdout)
- runner.run(EmptyMovieList)
- runner.run(OneMovieList)
-end
+end
\ No newline at end of file