Sha256: 60f3a9a6880264bfa7a541cddbc425cc758820bf48aa64256a5b0e6d68f8534a
Contents?: true
Size: 734 Bytes
Versions: 23
Compression:
Stored size: 734 Bytes
Contents
require 'spec_helper' require_relative '../../../app/helpers/riveter/command_form_helper' describe Riveter::CommandFormHelper do subject { Class.new().tap do |klass| klass.send :include, Riveter::CommandFormHelper end.new() } describe "#command_form_for" do it "delegates to default form_for" do command = TestCommand.new() expect(subject).to receive(:form_for).with(command, :as => 'test', :url => 'test') subject.command_form_for(command) end it "delegates to simple form if available" do command = TestCommand.new() expect(subject).to receive(:simple_form_for).with(command, :as => 'test', :url => 'test') subject.command_form_for(command) end end end
Version data entries
23 entries across 23 versions & 1 rubygems