Skip to content

Commit

Permalink
Merge pull request mbj#318 from kbrock/test_app_specs
Browse files Browse the repository at this point in the history
single spec for all literal tests
  • Loading branch information
mbj committed Apr 28, 2015
2 parents 376ca11 + b3a4735 commit ce8dfea
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
9 changes: 0 additions & 9 deletions test_app/spec/unit/test_app/literal/command_spec.rb

This file was deleted.

9 changes: 0 additions & 9 deletions test_app/spec/unit/test_app/literal/string_spec.rb

This file was deleted.

22 changes: 22 additions & 0 deletions test_app/spec/unit/test_app/literal_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ce8dfea

Please sign in to comment.