Last active
December 10, 2015 20:58
-
-
Save joshuaballoch/4491351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should not allow a material to be ranked without criteria" do | |
material = create :material | |
material.material_type_sym = :ranked | |
material.valid?.should_not be_true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should not allow a material to be ranked without criteria" do | |
material = create :material | |
material.material_type_sym = :ranked | |
if material.valid? | |
material.material_type_sym.should_not == :ranked | |
else | |
material.valid?.should_not be_true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment