many changes
This commit is contained in:
@@ -14,4 +14,17 @@ describe List do
|
||||
end
|
||||
end
|
||||
|
||||
describe :mark_as_payed do
|
||||
it "should set payed_at to a time" do
|
||||
@list.payed_at.should be_nil
|
||||
@list.mark_as_payed
|
||||
@list.payed_at.should be_kind_of Time
|
||||
end
|
||||
it "should set is_payed to true" do
|
||||
@list.is_payed.should be_false
|
||||
@list.mark_as_payed
|
||||
@list.is_payed.should be_true
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Product do
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user