Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single spec for all literal tests #318

Merged
merged 1 commit into from
Apr 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add single spec for all literal tests
  • Loading branch information
kbrock committed Apr 28, 2015
commit b3a4735bba6c1065edba2d93f553bd667970d151
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