added some tests

This commit is contained in:
Hauke Klement
2015-02-15 12:21:42 +01:00
parent 2fab3907c0
commit 5f6dbdd858
3 changed files with 18 additions and 0 deletions

View File

@ -28,4 +28,10 @@ describe Hint do
expect(Hint.nested_resource?).to be true
end
end
describe '#to_s' do
it "equals the hint's name" do
expect(hint.to_s).to eq(hint.name)
end
end
end

View File

@ -32,4 +32,10 @@ describe Submission do
end
end
end
describe '#to_s' do
it "equals the class' model name" do
expect(@submission.to_s).to eq(Submission.model_name.human)
end
end
end