Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ajax_dialog_callbacks
Conflicts: settings/app/views/refinery/admin/settings/_actions.html.erb
- Loading branch information
Showing
62 changed files
with
71 additions
and
1,603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
core/lib/generators/refinery/engine/templates/spec/spec_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
def setup_environment | ||
# Configure Rails Environment | ||
ENV["RAILS_ENV"] ||= 'test' | ||
|
||
require File.expand_path("../dummy/config/environment", __FILE__) | ||
|
||
require 'rspec/rails' | ||
require 'capybara/rspec' | ||
require 'factory_girl_rails' | ||
|
||
Rails.backtrace_cleaner.remove_silencers! | ||
|
||
RSpec.configure do |config| | ||
config.mock_with :rspec | ||
config.treat_symbols_as_metadata_keys_with_true_values = true | ||
config.filter_run :focus => true | ||
config.run_all_when_everything_filtered = true | ||
end | ||
|
||
# set javascript driver for capybara | ||
Capybara.javascript_driver = :selenium | ||
end | ||
|
||
def each_run | ||
ActiveSupport::Dependencies.clear | ||
|
||
FactoryGirl.reload | ||
|
||
# Requires supporting files with custom matchers and macros, etc, | ||
# in ./support/ and its subdirectories including factories. | ||
([Rails.root.to_s] | ::Refinery::Plugins.registered.pathnames).map{|p| | ||
Dir[File.join(p, 'spec', 'support', '**', '*.rb').to_s] | ||
}.flatten.sort.each do |support_file| | ||
require support_file | ||
end | ||
end | ||
|
||
# If spork is available in the Gemfile it'll be used but we don't force it. | ||
unless (begin; require 'spork'; rescue LoadError; nil end).nil? | ||
Spork.prefork do | ||
# Loading more in this block will cause your tests to run faster. However, | ||
# if you change any configuration or code from libraries loaded here, you'll | ||
# need to restart spork for it take effect. | ||
setup_environment | ||
end | ||
|
||
Spork.each_run do | ||
# This code will be run each time you run your specs. | ||
each_run | ||
end | ||
else | ||
setup_environment | ||
each_run | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
settings/app/controllers/refinery/admin/settings_controller.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.