Merging with wotk done in PDX
This commit is contained in:
parent
ffa8239e42
commit
f7809518aa
File diff suppressed because it is too large
Load Diff
13
spec/bike_bike_test_helper.rb
Normal file
13
spec/bike_bike_test_helper.rb
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#require 'rspec/rails'
|
||||||
|
#require 'rspec/autorun'
|
||||||
|
#require 'capybara/session'
|
||||||
|
|
||||||
|
#module BikeBikeTestHelper
|
||||||
|
#class BikeBikeSession < Capybara::Session
|
||||||
|
# def visit(*args)
|
||||||
|
# puts "\n\n========= VISIT!!! =========\n\n"
|
||||||
|
# #super(page)
|
||||||
|
# session.visit(*args)
|
||||||
|
# end
|
||||||
|
#end
|
||||||
|
#end
|
@ -3,6 +3,7 @@ ENV["RAILS_ENV"] ||= 'test'
|
|||||||
require File.expand_path("../../config/environment", __FILE__)
|
require File.expand_path("../../config/environment", __FILE__)
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
require 'rspec/autorun'
|
require 'rspec/autorun'
|
||||||
|
require 'bike_bike_test_helper'
|
||||||
#+require 'dotenv'; Dotenv.overload ".env.test"
|
#+require 'dotenv'; Dotenv.overload ".env.test"
|
||||||
|
|
||||||
# Requires supporting ruby files with custom matchers and macros, etc,
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
||||||
@ -54,6 +55,13 @@ RSpec.configure do |config|
|
|||||||
(#{t['id']}, #{Translation.sanitize(t['locale'])}, #{Translation.sanitize(t['key'])}, #{Translation.sanitize(t['value'])}, #{Translation.sanitize(t['interpolations'])}, #{Translation.sanitize(t['is_proc'])}, #{Translation.sanitize(t['created_at'])}, #{Translation.sanitize(t['updated_at'])})
|
(#{t['id']}, #{Translation.sanitize(t['locale'])}, #{Translation.sanitize(t['key'])}, #{Translation.sanitize(t['value'])}, #{Translation.sanitize(t['interpolations'])}, #{Translation.sanitize(t['is_proc'])}, #{Translation.sanitize(t['created_at'])}, #{Translation.sanitize(t['updated_at'])})
|
||||||
;")
|
;")
|
||||||
}
|
}
|
||||||
|
#visit 1, 2, 3
|
||||||
|
end
|
||||||
|
|
||||||
|
def visit(*args)
|
||||||
|
puts "\n\n========= VISIT!!! =========\n\n"
|
||||||
|
#super(page)
|
||||||
|
session.visit(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user