Skip to content

Commit

Permalink
Add RSpec module so that it works without monkey patching
Browse files Browse the repository at this point in the history
When Rspec is started with: `config.disable_monkey_patching!`
  • Loading branch information
jcoyne committed Oct 25, 2016
1 parent 5ed9662 commit dba48a2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
@@ -1,6 +1,6 @@
require 'rails_helper'

describe Collection do
RSpec.describe Collection do
it "has tests" do
skip "Add your tests here"
end
Expand Down
@@ -1,6 +1,6 @@
require 'rails_helper'

describe FileSet do
RSpec.describe FileSet do
it "has tests" do
skip "Add your tests here"
end
Expand Down
Expand Up @@ -2,7 +2,7 @@
# `rails generate curation_concerns:work <%= class_name %>`
require 'rails_helper'

describe CurationConcerns::Actors::<%= class_name %>Actor do
RSpec.describe CurationConcerns::Actors::<%= class_name %>Actor do
it "has tests" do
skip "Add your tests here"
end
Expand Down
Expand Up @@ -2,7 +2,7 @@
# `rails generate curation_concerns:work <%= class_name %>`
require 'rails_helper'

describe CurationConcerns::<%= class_name.pluralize %>Controller do
RSpec.describe CurationConcerns::<%= class_name.pluralize %>Controller do
it "has tests" do
skip "Add your tests here"
end
Expand Down
Expand Up @@ -3,7 +3,7 @@
require 'rails_helper'
include Warden::Test::Helpers

feature 'Create a <%= class_name %>' do
RSpec.feature 'Create a <%= class_name %>' do
context 'a logged in user' do
let(:user_attributes) do
{ <%= Devise.authentication_keys.first %>: 'test@example.com' }
Expand Down
Expand Up @@ -2,7 +2,7 @@
# `rails generate curation_concerns:work <%= class_name %>`
require 'rails_helper'

describe CurationConcerns::<%= class_name %>Form do
RSpec.describe CurationConcerns::<%= class_name %>Form do
it "has tests" do
skip "Add your tests here"
end
Expand Down
Expand Up @@ -2,7 +2,7 @@
# `rails generate curation_concerns:work <%= class_name %>`
require 'rails_helper'

describe <%= class_name %> do
RSpec.describe <%= class_name %> do
it "has tests" do
skip "Add your tests here"
end
Expand Down

0 comments on commit dba48a2

Please sign in to comment.