Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Mild tests for command mixin.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Aug 24, 2015
1 parent d1f93a2 commit d0c147d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions test/spec/ruby_command_mixin_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Copyright 2015, Noah Kantrowitz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'spec_helper'

describe PoiseRuby::RubyCommandMixin do
describe PoiseRuby::RubyCommandMixin::Resource do
resource(:poise_test) do
include described_class
end
subject { resource(:poise_test).new('test', nil) }

it { is_expected.to respond_to :parent_ruby }
it { is_expected.to respond_to :ruby }
it { is_expected.to respond_to :gem_binary }
it { expect(subject.respond_to?(:ruby_from_parent, true)).to be true }
end # /describe PoiseRuby::RubyCommandMixin::Resource

describe PoiseRuby::RubyCommandMixin::Provider do
end # /describe PoiseRuby::RubyCommandMixin::Provider
end

0 comments on commit d0c147d

Please sign in to comment.