Sha256: 802689e3469bf4b55bb267933e3ed53093484b932431e5bd5ad94e5e471a604b

Contents?: true

Size: 371 Bytes

Versions: 7

Compression:

Stored size: 371 Bytes

Contents

require 'spec_helper'

class Helper
  include RailsAssist::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

7 entries across 7 versions & 1 rubygems

Version Path
rails_artifactor-0.5.1 spec/rails_artifactor/artifact/base_spec.rb
rails_artifactor-0.5.0 spec/rails_artifactor/artifact/base_spec.rb
rails_artifactor-0.4.0 spec/rails_artifactor/artifact/base_spec.rb
rails_artifactor-0.3.6 spec/rails_artifactor/artifact/base_spec.rb
rails_artifactor-0.3.5 spec/rails_artifactor/artifact/base_spec.rb
rails_artifactor-0.3.4 spec/rails_artifactor/artifact/base_spec.rb
rails_artifactor-0.3.3 spec/rails_artifactor/artifact/base_spec.rb