by omnikron · 12y ago · 0 comments
As an alternative, where you currently have:
it { expect(client.active?).to be_false }
It might be even more idiomatic to write: subject { client }
it { should_not be_active }
# etc.
...beautiful! let(:client) { create(:client, :inactive) }
with subject { create(:client, :inactive) }
and then carry on as above.Rspec's syntax is great.