mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
Updated tests to decrease string repetition
Removed an unused variable Some minor style changes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user