Sha256: be01dc8d3500d42468852e0ba6bedff50468e2e396263a51bb5bae19225dc30e
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' # will automatically get HatTrick::DSL included class FakeController < ActionController::Base; end describe HatTrick::DSL do let(:controller_class) { FakeController } # save some typing def dsl(&block) controller_class.instance_eval &block end describe HatTrick::DSL::ClassMethods do describe "#step" do it "should call Wizard#add_step" do HatTrick::WizardDefinition.any_instance.expects(:add_step).with(:foo, {}) dsl do wizard do step :foo end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hat-trick-0.1.2 | spec/lib/hat_trick/dsl_spec.rb |
hat-trick-0.1.1 | spec/lib/hat_trick/dsl_spec.rb |
hat-trick-0.1.0 | spec/lib/hat_trick/dsl_spec.rb |