Sha256: 8bfe8dd1402a0c1958bffd60038034206e3701ca31bcc9ed5aebc6e65d8e9c1e
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' module Logical module Naf module JobStatuses describe Waiting do context "no conditions" do let!(:conditions) { "" } it "returns executable query" do expect { ActiveRecord::Base.connection.execute(Waiting.all(conditions)) }.to_not raise_error end end context "with conditions" do let!(:conditions) { "TEST STRING" } it "adds conditions to returned sql string" do expect(Waiting.all(conditions).include?(conditions)).to be_true end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
naf-2.1.13 | spec/models/logical/naf/job_statuses/waiting_spec.rb |