Updated tests to decrease string repetition

Removed an unused variable
Some minor style changes
This commit is contained in:
Martin Feckie
2013-06-25 22:15:41 +08:00
parent 7d1e8239e0
commit 674e26e6c3
6 changed files with 16 additions and 18 deletions

View File

@ -11,7 +11,7 @@ describe Draft do
it "uses the user id and key correctly" do
Draft.set(@user, "test", 0,"data")
Draft.get(Fabricate(:coding_horror), "test", 0).should be_nil
Draft.get(Fabricate.build(:coding_horror), "test", 0).should be_nil
end
it "should overwrite draft data correctly" do