Skip to content

Commit

Permalink
Add single spec for all literal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Apr 28, 2015
1 parent a7db953 commit b3a4735
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 b3a4735

Please sign in to comment.