test/dummy/test/models/audio_test.rb in attached-1.0.4 vs test/dummy/test/models/audio_test.rb in attached-1.0.5

- old
+ new

@@ -17,34 +17,34 @@ @invalid.close @undefined.close end test "valid file assignment" do - @audio = Audio.create(:file => @valid) + @audio = Audio.create(file: @valid) assert @audio.valid?, "valid file assignment failed" assert @audio.file?, "should have a file" end test "inavlid file assignment" do - @audio = Audio.create(:file => @invalid) + @audio = Audio.create(file: @invalid) assert !@audio.valid?, "invalid file assignment succeeded" assert @audio.errors[:file].include? "must be an audio file" end test "undefined file assignment" do - @audio = Audio.create(:file => @undefined) + @audio = Audio.create(file: @undefined) assert !@audio.valid?, "undefined file assignment succeeded" assert @audio.errors[:file].include? "extension is invalid" end test "too large file assignment" do - @audio = Audio.create(:file => @large) + @audio = Audio.create(file: @large) assert !@audio.valid?, "invalid file assignment succeeded" assert @audio.errors[:file].include? "size must be between 2 kilobytes and 2 megabytes" end test "too small file assignment" do - @audio = Audio.create(:file => @small) + @audio = Audio.create(file: @small) assert !@audio.valid?, "invalid file assignment succeeded" assert @audio.errors[:file].include? "size must be between 2 kilobytes and 2 megabytes" end test "no file assignment" do