Sha256: f9ed5771eec137c337f6f4ce2b3db3016a8908009ff57dc4329851f3e4dc8d63

Contents?: true

Size: 374 Bytes

Versions: 17

Compression:

Stored size: 374 Bytes

Contents

require 'spec_helper'

class Helper
  include Rails3::Assist::BaseHelper
end

describe 'BaseHelper' do
  describe '#marker_option' do

    it "should return marker option" do
      helper = Helper.new
      helper.stubs(:model_marker).returns 'Account'
      res = helper.send :marker_option, :account, :type => :model
      res[:after].should == 'Account'
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails3_artifactor-0.4.0 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.3.2 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.3.1 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.3.0 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.8 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.7 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.6 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.5 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.4 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.3 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.2 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.2.1 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.1.5 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.1.4 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.1.3 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.1.2 spec/rails3_artifactor/artifact/base_spec.rb
rails3_artifactor-0.1.1 spec/rails3_artifactor/artifact/base_spec.rb