spec/alexandria/book_spec.rb in alexandria-book-collection-manager-0.7.1 vs spec/alexandria/book_spec.rb in alexandria-book-collection-manager-0.7.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # Copyright (C) 2007 Joseph Method # Copyright (C) 2011, 2015 Matijs van Zuijlen # # Alexandria is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -45,13 +47,13 @@ book.rating = 5 expect(book.rating).to eq 5 end it 'does not allow higher rating than 5 to be assigned' do - expect { book.rating = 6 }.to raise_error + expect { book.rating = 6 }.to raise_error ArgumentError end it 'does not allow lower rating than 0 to be assigned' do - expect { book.rating = -1 }.to raise_error + expect { book.rating = -1 }.to raise_error ArgumentError end end end