diff --git a/spec/form_helper_spec.rb b/spec/form_helper_spec.rb index 1e84424..defd860 100644 --- a/spec/form_helper_spec.rb +++ b/spec/form_helper_spec.rb @@ -1,7 +1,7 @@ require 'rspec' -require File.expand_path('../../lib/country_definitions', __FILE__) -describe 'helper' do + +describe 'helper methods' do it 'should include countries names' do names = COUNTRY_NAMES diff --git a/spec/helper_spec.rb b/spec/helper_spec.rb index 1c044a7..85903ac 100644 --- a/spec/helper_spec.rb +++ b/spec/helper_spec.rb @@ -1,5 +1,5 @@ require 'rspec' -require File.expand_path('../../lib/rails_country_select', __FILE__) + require 'action_view' require 'action_view/helpers' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c694237..ce5da51 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,7 +4,8 @@ Coveralls.wear! 'rails' -require "rails_country_select" +require File.expand_path('../../lib/rails_country_select', __FILE__) +require File.expand_path('../../lib/country_definitions', __FILE__) RSpec.configure do |config| end