Sha256: bd67f658cd2951046948fb33b34cc40325de015d7554f6deaca6f6878f0970ac

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

require "spec_helper"
require File.join(File.dirname(__FILE__), '..', 'lib', 'devise_capturable', 'view_helpers')

describe 'View Helpers' do

  it "should generate correct link" do
    class Testing
      include Devise::Capturable::Helpers
    end
    test = Testing.new
    link = test.link_to_capturable("Login")
    link.should == '<a href="#" class="capture_modal_open" id="capture_signin_link">Login</a>'
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_capturable-0.0.11 spec/view_helpers_spec.rb
devise_capturable-0.0.10 spec/view_helpers_spec.rb
devise_capturable-0.0.9 spec/view_helpers_spec.rb
devise_capturable-0.0.8 spec/view_helpers_spec.rb
devise_capturable-0.0.6 spec/view_helpers_spec.rb
devise_capturable-0.0.5 spec/view_helpers_spec.rb