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
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
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
>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
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