讨厌问这个问题,但我不能因为他的生活找到这个结束错误,任何人都可以帮助>拜托,谢谢。
require_relative 'playlist'
describe playlist do
before do
@playlist = Playlist.new("kermit")
end
context "being played with one movie" do
before do
@initial_rank= 10
@Movie = Movie.new("goonies", @initial_rank)
@playlist.add_movie(@movie)
end
it "give the movie a thumbs up if high number is rolled" do
@playlist.play(5)
@movie.rank.should == @initial_rank + 1
end
it "skips the movie if a medium niumber is rolled" do
@playlist.play(3)
@movie.rank.should == @initial_rank
end
end
end