lib/generators/rspec/query/templates/query_spec.rb in riveter-0.0.5 vs lib/generators/rspec/query/templates/query_spec.rb in riveter-0.0.6

- old
+ new

@@ -7,11 +7,11 @@ before do # TODO: create fixture data FactoryGirl.create_list :<%= class_name.underscore %>, 10 end - let(:filter) { OpenStruct.new() } + let(:filter) { double(:filter) } subject { <%= class_name %>Query.new(filter) } it { subject.relation.should_not be_nil } it { subject.has_data?.should be_true } it { @@ -21,10 +21,10 @@ } end context "without data" do - let(:filter) { OpenStruct.new() } + let(:filter) { double(:filter) } subject { <%= class_name %>Query.new(filter) } it { subject.relation.should_not be_nil } it { subject.has_data?.should be_false } it {