Merge pull request #318 from kbrock/test_app_specs
single spec for all literal tests
This commit is contained in:
commit
ce8dfea6c9
3 changed files with 22 additions and 18 deletions
|
@ -1,9 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
RSpec.describe TestApp::Literal, '#command' do
|
||||
subject { object.command(double) }
|
||||
|
||||
let(:object) { described_class.new }
|
||||
|
||||
it { should be(object) }
|
||||
end
|
|
@ -1,9 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
RSpec.describe TestApp::Literal, '#string' do
|
||||
subject { object.string }
|
||||
|
||||
let(:object) { described_class.new }
|
||||
|
||||
it { should eql('string') }
|
||||
end
|
22
test_app/spec/unit/test_app/literal_spec.rb
Normal file
22
test_app/spec/unit/test_app/literal_spec.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
# encoding: utf-8
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
RSpec.describe TestApp::Literal do
|
||||
|
||||
describe '#command' do
|
||||
subject { object.command(double) }
|
||||
|
||||
let(:object) { described_class.new }
|
||||
|
||||
it { should be(object) }
|
||||
end
|
||||
|
||||
describe '#string' do
|
||||
subject { object.string }
|
||||
|
||||
let(:object) { described_class.new }
|
||||
|
||||
it { should eql('string') }
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue