Handle strings as well as symbols for method stubs. #23

Merged
merged 1 commit into from Jul 15, 2012

Conversation

Projects
None yet
2 participants
Contributor

pat commented Jul 14, 2012

Yes, I usually write my method stubs using symbols, but wandered from that path with some simple metaprogramming. RSpec's fine with strings, but rspec-fire wasn't when it came to running my full test suite - it insisted the methods did not exist on the real classes.

Perhaps the implementation's not quite right, or the tests don't need to happen everywhere - I leave that to your tweaking, given you know your code better than I.

@pat pat Handle strings as well as symbols for method stubs.
Yes, I usually write my method stubs using symbols, but wandered from that path with some simple metaprogramming. RSpec's fine with strings, but rspec-fire wasn't when it came to running my full test suite - it insisted the methods did not exist on the real classes.
0907ec7
Owner

xaviershay commented Jul 15, 2012

That's great, thanks Pat.

@xaviershay xaviershay added a commit that referenced this pull request Jul 15, 2012

@xaviershay xaviershay Merge pull request #23 from freelancing-god/string_methods
Handle strings as well as symbols for method stubs.
e02f325

@xaviershay xaviershay merged commit e02f325 into xaviershay:master Jul 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment