Skip to content

Instantly share code, notes, and snippets.

@joshuaballoch
Last active December 10, 2015 20:58
Show Gist options
  • Save joshuaballoch/4491351 to your computer and use it in GitHub Desktop.
Save joshuaballoch/4491351 to your computer and use it in GitHub Desktop.
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
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