Browse Source

Tests fixed

development
G0dwin 11 years ago
parent
commit
4f448df63a
  1. 4
      Gemfile
  2. 7
      Gemfile.lock
  3. 4
      app/helpers/bike_bike_form_helper.rb
  4. 1
      config/initializers/drupal_hash.rb
  5. 2251
      config/locales/translation-info.yml
  6. 4
      spec/features/pages/login_spec.rb
  7. 2
      spec/features/pages/organization_registration_spec.rb

4
Gemfile

@ -19,8 +19,8 @@ gem 'oauth2', '~> 0.8.0'
gem 'carrierwave' gem 'carrierwave'
gem 'carrierwave-imageoptimizer' gem 'carrierwave-imageoptimizer'
gem 'mini_magick' gem 'mini_magick'
# gem 'carmen', :path => '../carmen/' if File.directory?('../carmen/') && RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i gem 'carmen', :path => '../carmen/' if File.directory?('../carmen/') && RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i
#gem 'carmen-rails' gem 'carmen-rails'
gem 'nested_form' gem 'nested_form'
gem 'acts_as_list' gem 'acts_as_list'
gem 'geocoder' gem 'geocoder'

7
Gemfile.lock

@ -60,6 +60,11 @@ GEM
rack (>= 1.0.0) rack (>= 1.0.0)
rack-test (>= 0.5.4) rack-test (>= 0.5.4)
xpath (~> 2.0) xpath (~> 2.0)
carmen (1.0.1)
unicode_utils (~> 1.4.0)
carmen-rails (1.0.1)
carmen (~> 1.0.0)
rails
carrierwave (0.10.0) carrierwave (0.10.0)
activemodel (>= 3.2.0) activemodel (>= 3.2.0)
activesupport (>= 3.2.0) activesupport (>= 3.2.0)
@ -278,6 +283,7 @@ GEM
uglifier (2.5.0) uglifier (2.5.0)
execjs (>= 0.3.0) execjs (>= 0.3.0)
json (>= 1.8.0) json (>= 1.8.0)
unicode_utils (1.4.0)
wdm (0.1.0) wdm (0.1.0)
webmock (1.18.0) webmock (1.18.0)
addressable (>= 2.3.6) addressable (>= 2.3.6)
@ -296,6 +302,7 @@ DEPENDENCIES
better_errors better_errors
binding_of_caller binding_of_caller
capybara capybara
carmen-rails
carrierwave carrierwave
carrierwave-imageoptimizer carrierwave-imageoptimizer
coffee-rails (~> 4.0.0) coffee-rails (~> 4.0.0)

4
app/helpers/bike_bike_form_helper.rb

@ -381,7 +381,9 @@ module BikeBikeFormHelper
private private
def custom_field(method, value, options, type) def custom_field(method, value, options, type)
options[:_controller] = params[:controller] if defined? params
options[:_controller] = params[:controller]
end
options[:_record] = object options[:_record] = object
options = BikeBikeFormHelper.get_options(method, options, type) options = BikeBikeFormHelper.get_options(method, options, type)
html = BikeBikeFormHelper.send(type + '_tag', method, value, options, self) html = BikeBikeFormHelper.send(type + '_tag', method, value, options, self)

1
config/initializers/drupal_hash.rb

@ -109,7 +109,6 @@ module Sorcery
end end
end end
puts "\nHASH:\t#{output}\n"
return output return output
end end
end end

2251
config/locales/translation-info.yml

File diff suppressed because it is too large

4
spec/features/pages/login_spec.rb

@ -31,7 +31,7 @@ describe 'Login' do
visit login_path visit login_path
form = find 'form[action$="/user_sessions"]' form = find 'form[action$="/user_sessions"]'
expect(form).to have_button 'Sign In' expect(form).to have_button 'Sign In'
expect(form).to have_field 'email_' expect(form).to have_field 'email'
expect(form).to have_field 'password' expect(form).to have_field 'password'
expect(form).to have_link 'facebook' expect(form).to have_link 'facebook'
end end
@ -62,7 +62,7 @@ describe 'Login' do
it "allows you to login" do it "allows you to login" do
visit login_path visit login_path
form = find 'form[action$="/user_sessions"]' form = find 'form[action$="/user_sessions"]'
form.find("#email_").set(user.email) form.find("#email").set(user.email)
form.find("#password").set('secret') form.find("#password").set('secret')
click_button "Sign_In" click_button "Sign_In"
end end

2
spec/features/pages/organization_registration_spec.rb

@ -7,7 +7,7 @@ describe 'Organization Registration' do
before(:each) do before(:each) do
visit login_path visit login_path
form = find 'form[action$="/user_sessions"]' form = find 'form[action$="/user_sessions"]'
form.find("#email_").set(user.email) form.find("#email").set(user.email)
form.find("#password").set('secret') form.find("#password").set('secret')
click_button "Sign_In" click_button "Sign_In"
visit new_organization_path visit new_organization_path

Loading…
Cancel
Save