Merge pull request #318 from kbrock/test_app_specs

single spec for all literal tests
This commit is contained in:
Markus Schirp 2015-04-28 02:09:14 +00:00
commit ce8dfea6c9
3 changed files with 22 additions and 18 deletions

View file

@ -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

View file

@ -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

View 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