Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure rspec with disable_monkey_patching! #4802

Merged
merged 1 commit into from Feb 18, 2017

Conversation

Fivell
Copy link
Member

@Fivell Fivell commented Feb 17, 2017

@deivid-rodriguez
Copy link
Member

I think you only need to namespace the outer describe's. The inner ones are defined inside the example so they are not monkeypatches. Also, seems that your search and replace messed up a require :)

@Fivell
Copy link
Member Author

Fivell commented Feb 18, 2017

@deivid-rodriguez , yes wrong regexp ...

@Fivell
Copy link
Member Author

Fivell commented Feb 18, 2017

@deivid-rodriguez , rebased and fixed

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me other than some minor comments.


let(:application) do
ActiveAdmin::Application.new.tap do |app|
# Manually override the load paths becuase RSpec messes these up
# Manually override the load paths becuase RSpec.messes these up
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another bad substitution. Maybe you can correct the "becuase" typo since you're here.

@@ -92,10 +92,10 @@
end
end
end
end # describe rendering rows
end #describe rendering rows
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be left alone.


end
end # describe dsl styles
end #describe dsl styles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

@@ -232,7 +232,7 @@
end
end
end
end # describe rendering rows
end #describe rendering rows
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@Fivell
Copy link
Member Author

Fivell commented Feb 18, 2017

@deivid-rodriguez , thanks ! it was too late for me , sorry for my inattention

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@Fivell Fivell merged commit 51a9fbe into activeadmin:master Feb 18, 2017
@Fivell Fivell deleted the rspec-describe branch February 18, 2017 09:35
@deivid-rodriguez
Copy link
Member

@deivid-rodriguez , thanks ! it was too late for me , sorry for my inattention

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants