Sha256: 4405e092bfae8a4c56d0c330173fdb5a4fbaea20ce7feec5fdf7259f17c1807c

Contents?: true

Size: 425 Bytes

Versions: 9

Compression:

Stored size: 425 Bytes

Contents

require 'rspec'
require 'spec_helper'

describe 'ActionView' do
  it 'should include helper tag methods' do
    ActionView::Helpers::FormOptionsHelper.instance_methods.include?(:country_select).should be true
    ActionView::Helpers::FormBuilder.instance_methods.include?(:country_select).should be true
  end

  it 'fail test' do
    user = double("user")
    expect { country_select(user, :name)}.to raise_error
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_country_select-1.0.5 spec/form_tag_spec.rb
rails_country_select-1.0.4.pre8 spec/form_tag_spec.rb
rails_country_select-1.0.4.pre7 spec/form_tag_spec.rb
rails_country_select-1.0.4.pre6 spec/form_tag_spec.rb
rails_country_select-1.0.4.pre5 spec/form_tag_spec.rb
rails_country_select-1.0.4.pre4 spec/form_tag_spec.rb
rails_country_select-1.0.4.pre3 spec/form_tag_spec.rb
rails_country_select-1.0.4.pre1 spec/form_tag_spec.rb
rails_country_select-1.0.3 spec/form_tag_spec.rb