Sure but, take in count that this will imply hitting the database itself
something that I don't want; as you can see the object in that particular
spec is a mock so it doesn't have any attributes as the model have. My
reasoning for this is the fact that we shouldn't be testing Rails stuffs,
AR is already been tested in Rails itself and in the case that we are going
to test this behavior the integration specs with cucumber is doing this.


On 4 September 2013 03:23, Sam Joseph <notifications@github.com> wrote:

> In spec/models/create_organization_from_array_spec.rb:
>
> >
> > -    its(:name) { should == 'Harrow Baptist Church' }
> > +    it { should == organization }
>
> I believe you. However having all the actual elements of the org
> explicitly in the spec file has the advantage of showing an example of what
> each of the fields actually are - better for maintainability no?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tansaku/LocalSupport/pull/92/files#r6146671>
> .
>



-- 
Rafael George