Re: [rspec-users] How to spec the existence of specs

2008-09-06 Thread Nick Hoffman
On 2008-08-31, at 15:40, Joseph Wilk wrote: I've been giving this some thought, I've not had the chance to test it out yet, but here are my examples: -- it "should add a 'it' test" do example_group = Class.new(Spec::Example::ExampleGroup) example_group.should_receive(:it).with(...) ... exampl

Re: [rspec-users] How to spec the existence of specs

2008-08-31 Thread Joseph Wilk
I've been giving this some thought, I've not had the chance to test it out yet, but here are my examples: -- it "should add a 'it' test" do example_group = Class.new(Spec::Example::ExampleGroup) example_group.should_receive(:it).with(...) ... example.class_eval do describe_model_attribu

Re: [rspec-users] How to spec the existence of specs

2008-08-29 Thread Nick Hoffman
On 2008-08-29, at 05:06, Joseph Wilk wrote: Each method generates specs depending on its arguments How does each method generate the specs? * Using script/generate rspec... or * File handling and writing your own? -- Joseph Wilk http://www.joesniff.co.uk Hi again Joseph. Each method generate

Re: [rspec-users] How to spec the existence of specs

2008-08-29 Thread Joseph Wilk
>Each method generates specs depending on its arguments How does each method generate the specs? * Using script/generate rspec... or * File handling and writing your own? -- Joseph Wilk http://www.joesniff.co.uk Nick Hoffman wrote: > I'm writing a Rails plugin that generates specs for Rails mode

[rspec-users] How to spec the existence of specs

2008-08-28 Thread Nick Hoffman
I'm writing a Rails plugin that generates specs for Rails models. Obviously, I want to use RSpec to spec this plugin. The plugin, called ModelSpeccer, contains a module with three methods. Each method generates specs depending on its arguments. How can my plugin's specs check that each meth