473 question tags

Ready for review. The part I'm most unsure about is the way `@ability` is created and used in the tests, and its interaction with user and mission. But all tests are passing! 
Oh my bad, valid? will only run before_validation callbacks. I think there
is a way to run the other ones though.


On 8 August 2014 17:35, Adam Konner <notifications@github.com> wrote:

> In spec/models/tag_spec.rb:
>
> > @@ -0,0 +1,37 @@
> > +require 'spec_helper'
> > +
> > +describe Tag do
> > +  it "should force name to lowercase" do
> > +    tag = create(:tag, name: 'ABC')
> > +    expect(tag.reload.name).to eq 'abc'
>
> This one doesn't seem to work without the DB. Calling valid? is supposed
> to run callbacks, but it apparently doesn't affect the state of the non-DB
> object made by build or new.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/thecartercenter/elmo/pull/27/files#r16017792>.
>



-- 
Tom Smyth
Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change
sassafras.coop *·* @sassafrastech