added some tests
This commit is contained in:
@ -26,6 +26,12 @@ describe TestingFrameworkAdapter do
|
||||
end
|
||||
end
|
||||
|
||||
describe '.framework_name' do
|
||||
it 'defaults to the class name' do
|
||||
expect(adapter.class.framework_name).to eq(TestingFrameworkAdapter.name)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#parse_output' do
|
||||
it 'requires subclasses to implement #parse_output' do
|
||||
expect { adapter.send(:parse_output, '') }.to raise_error(NotImplementedError)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user