spec/scenario.rb in walruz-rails-0.0.4 vs spec/scenario.rb in walruz-rails-0.0.5

- old
+ new

@@ -11,11 +11,11 @@ @songs = [] @colaborations = [] end def sing_the_song(song) - response = authorize(:sing, song) + response = authorize!(:sing, song) case response[:owner] when Colaboration authors = response[:owner].authors.dup authors.delete(self) authors.map! { |author| author.name } @@ -24,10 +24,10 @@ "I just need myself, Let's Rock! \\m/" end end def sing_with_john(song) - authorize(:sing_with_john, song) + authorize!(:sing_with_john, song) "Ok John, Let's Play '%s'" % song.name end JOHN = self.new("John")