Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Expose configuration options #834

Merged

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Mar 18, 2013

An alternate to #832 this solves #732 by exposing readers for a few of the configuration options that don't already have them.

@soulcutter
Copy link
Member

Just a heads up, there will be a conflict with #867 specifically the requires= / requires bit.

Other than that, I think this looks good.

@myronmarston
Copy link
Member

Oh yeah, I still need to review this...will try to get to it soon :).

@soulcutter
Copy link
Member

Closing in favor of #874 (which is just this PR merged into master)

@soulcutter soulcutter closed this Apr 17, 2013
@JonRowe
Copy link
Member Author

JonRowe commented Apr 17, 2013

I prefer rebasing and force pushing over merging in another branch, as this preserves the discussion centered around the PR, and I only havent rebased it because I'm still awaiting @myronmarston's feedback...

@soulcutter
Copy link
Member

I can force push to your repo? I wasn't sure how to deal with that.

Sorry if I stepped on toes this way - my thinking was I'd fix this PR since I broke it (merge-conflict-wise).

FWIW this change gets 👍 to merge into master from me, but also didn't want to step on Myron's toes since this was on his radar.

@JonRowe
Copy link
Member Author

JonRowe commented Apr 17, 2013

I just meant it was awaiting more feedback, then I was going to rebase it.

You can't push to my repo unless I add you all as collaborators, which actually might be reasonable.

@myronmarston
Copy link
Member

I prefer keeping the extra merge commit out as well, so I'll comment here.

@myronmarston myronmarston reopened this Apr 17, 2013
@@ -423,6 +424,9 @@ def expect_with(*frameworks)
@expectation_frameworks.push(*modules)
end

def full_backtrace
@backtrace_clean_patterns.empty?
end
def full_backtrace=(true_or_false)
Copy link
Member

Choose a reason for hiding this comment

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

Please put blank lines between method defs -- I find that it helps readability a lot.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, sorry, I suck at that.

@myronmarston
Copy link
Member

Woops, I accidentally got my chrome tabs confused and left a couple comments on @soulcutter's PR. I might move them over later but I don't have the time right now.

def full_backtrace
@exclusion_patterns.empty?
end

Copy link
Member

Choose a reason for hiding this comment

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

Given that this is a boolean predicate, maybe it should be full_backtrace?.

myronmarston added a commit that referenced this pull request Apr 18, 2013
@myronmarston myronmarston merged commit de6723d into rspec:master Apr 18, 2013
@myronmarston
Copy link
Member

I left a couple more minor comments, (sorry, some of this stuf I didn't notice until just now), but went ahead and merged because this is definitely a big improvement. If the other comments are deemed worthy of addressing it can always be done post-merge.

Can you add a change log entry, though?

Thanks!

@JonRowe
Copy link
Member Author

JonRowe commented Apr 18, 2013

Added changelog over on #876

@JonRowe JonRowe deleted the alternate_expose_config_options_to_config branch April 18, 2013 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants