Tests fixed

This commit is contained in:
G0dwin 2014-05-17 19:00:39 -06:00
parent f6b39ea93f
commit 4f448df63a
7 changed files with 2173 additions and 70 deletions

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@ describe 'Login' do
visit login_path
form = find 'form[action$="/user_sessions"]'
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_link 'facebook'
end
@ -62,7 +62,7 @@ describe 'Login' do
it "allows you to login" do
visit login_path
form = find 'form[action$="/user_sessions"]'
form.find("#email_").set(user.email)
form.find("#email").set(user.email)
form.find("#password").set('secret')
click_button "Sign_In"
end

View File

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