Skip to content

Commit

Permalink
Add examples of more perverse use
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Aug 23, 2010
1 parent 49002d7 commit 88041f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/pickle/parser/matchers_spec.rb
Expand Up @@ -63,7 +63,7 @@ def capture(expected, options = {})
its(:match_plural_factory) { should_not match_any 'admin users', 'faster cars', 'events created' }

its(:match_pickle_ref) { should match_all 'a user', 'a user: "fred"', 'the 2nd user', 'the super_admin', '"fred"' }
its(:match_pickle_ref) { should_not match_any 'an admin user', 'a 2nd user', '' }
its(:match_pickle_ref) { should_not match_any 'another person:', 'another person: ', 'an admin user', 'a 2nd user', '' }

describe "with config.factories = ['admin user', 'funky thing']" do
before do
Expand Down
2 changes: 1 addition & 1 deletion spec/pickle/ref_spec.rb
Expand Up @@ -81,7 +81,7 @@
end

describe "factory or label required:" do
[''].each do |str|
['', '""'].each do |str|
describe ".new '#{str}'" do
subject { Pickle::Ref.new(str) }
it { lambda { subject }.should raise_error(Pickle::InvalidPickleRefError, /factory or label/) }
Expand Down

0 comments on commit 88041f1

Please sign in to comment.