diff options
| author | mo khan <mo@mokhan.ca> | 2014-09-07 08:54:57 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-09-07 08:54:57 -0600 |
| commit | e072dfa874397da1567ff4397e5352dd22c39c7c (patch) | |
| tree | 79053cb8840edb43ebb86d71fc3515c1b2180119 /spec/models | |
| parent | fb72df7a52b15239b99c66280ce4e9cc92855bc1 (diff) | |
use name.parameterize.
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/creation_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/creation_spec.rb b/spec/models/creation_spec.rb index 43d1ac01..153ec273 100644 --- a/spec/models/creation_spec.rb +++ b/spec/models/creation_spec.rb @@ -1,14 +1,14 @@ require 'rails_helper' describe Creation do - let(:sut) { Creation.new } + subject { Creation.new } describe "should be able to set attributes" do it "should save name" do - sut.name="HELLO WORLD" - sut.category = create(:category) - sut.save! - Creation.find(sut.id).name.should == "HELLO WORLD" + subject.name="HELLO WORLD" + subject.category = create(:category) + subject.save! + Creation.find(subject.id).name.should == "HELLO WORLD" end end |
