SyntaxError:playlist.rb:33:语法错误,意外的输入结束,期望keyword_end

时间:2014-03-06 06:26:14

标签: ruby rspec

讨厌问这个问题,但我不能因为他的生活找到这个结束错误,任何人都可以帮助>拜托,谢谢。

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

0 个答案:

没有答案