Sha256: f2ec7fd42e00e24d19d978d0386b37ddaaacf00f7646929fe5ecf7f946b5fcd2
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Dispatcher, '.coerce' do subject { described_class.coerce(config, env) } let(:config) {{ 'test' => { 'action' => 'Spec::Action::Success' } }} let(:env) { double } let(:coerced) {{ :test => described_class::Action.coerce(:action => 'Spec::Action::Success') }} it { should eql(described_class.new(coerced, env)) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.10.beta2 | spec/unit/substation/dispatcher/class_methods/coerce_spec.rb |