Sha256: 68aec0bec6bf81c1aa10192257dd79373538e7839ea15e9bbf55470827c35da1
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
require 'minarai/action_builder' require 'minarai/actions/git' require 'minarai/actions/unknown' describe Minarai::ActionBuilder do describe '#build' do context 'when valid action type recieved' do subject { described_class.new('type' => 'git').build } it 'return valid ActionType' do is_expected.to be_a Minarai::Actions::Git end end context 'when invalid action type recieved' do subject { described_class.new('type' => 'invalid').build } it 'return Minrai::Actions::Unknown' do is_expected.to be_a Minarai::Actions::Unknown end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minarai-0.0.3 | spec/minarai/unit/action_builder_spec.rb |
minarai-0.0.2 | spec/minarai/unit/action_builder_spec.rb |
minarai-0.0.1 | spec/minarai/unit/action_builder_spec.rb |