On Mon, Dec 3, 2012 at 12:34 AM, macarthy <[email protected]> wrote:
> Does anyone  have an example of testing a custom form builder with rspec ?
>
> in /spec/helpers/my_form_builder_spec.rb
>
> require 'spec_helper'
>
> describe MyFormBuilder do
>
> before (:each) do
>
>     @object = mock_model(Company)
>
>     @object.stub!(:longname).and_return("Company")
>
>     @object.stub!(:phone).and_return("+(66) 000 00001")
>
>     @builder = StandardFormBuilder.new(:company, @object, self, {}, nil) end
>
> end
>
>
>
> I'm getting the following error
>
>     wrong argument type Class (expected Module)

Which line in what file is this coming from? Please post the backtrace
so we can see more detail.

>
> I think it is try to include RSpec::Rails::HelperExampleGroup
>
> Any ideas?
>
>
> Thanks J
>
> --
> You received this message because you are subscribed to the Google Groups
> "rspec" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rspec/-/rwqPfaLVM-0J.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to