Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

always require spec_helper the same way, fixes rspec yelling about po…

…st-example config
  • Loading branch information...
commit 72b1db8c80932fd937579f3855995f354de33fec 1 parent 9eb2eeb
@jeremyruppel jeremyruppel authored Ben Marini committed
View
2  spec/integration/belongs_to_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe_with_capybara "Belongs To" do
View
2  spec/integration/index_as_csv_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe_with_render "Index as CSV" do
View
2  spec/unit/action_builder_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe 'defining new actions from registration blocks' do
View
2  spec/unit/action_items_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin::ActionItems do
View
2  spec/unit/active_admin_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
require 'fileutils'
describe ActiveAdmin do
View
2  spec/unit/asset_registration_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
module MockRegistration
extend ActiveAdmin::AssetRegistration
View
2  spec/unit/belongs_to_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
module ActiveAdmin
class Resource
View
2  spec/unit/breadcrumbs_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe "Breadcrumbs" do
View
2  spec/unit/comments_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require 'spec_helper'
describe "Configuration" do
it "should have an array of namespaces which allow comments" do
View
2  spec/unit/controller_filters_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin, "filters" do
View
2  spec/unit/dashboard_controller_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
module Admin
View
2  spec/unit/dashboard_section_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin::Dashboards::Section do
View
2  spec/unit/dashboards_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin::Dashboards do
View
2  spec/unit/filter_form_builder_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin::ViewHelpers::FilterFormHelper do
View
2  spec/unit/form_builder_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin::FormBuilder do
include Arbre::HTML
View
2  spec/unit/menu_item_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
module ActiveAdmin
describe MenuItem do
View
2  spec/unit/menu_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin::Menu do
View
2  spec/unit/namespace_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin::Namespace do
View
2  spec/unit/registration_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe "Registering an object to administer" do
View
2  spec/unit/renderer_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
include ActiveAdmin
View
2  spec/unit/resource_controller_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require 'spec_helper'
describe ActiveAdmin::ResourceController do
View
2  spec/unit/resource_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
module ActiveAdmin
describe Resource do
View
2  spec/unit/routing_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'spec_helper'
describe ActiveAdmin, "Routing" do
View
2  spec/unit/tabs_renderer_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require 'spec_helper'
describe ActiveAdmin::Views::TabsRenderer do
Please sign in to comment.
Something went wrong with that request. Please try again.