Sha256: b9a014ad18740e06a80777e48f4801f7cca08167a53e8c2278f96cd5f4236c86

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

require 'spec_helper'

module Logical
  module Naf
    module JobStatuses

      describe Finished do

        context "no conditions" do
          
          let!(:conditions) { "" }

          it "returns executable query" do
            expect { ActiveRecord::Base.connection.execute(Finished.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(Finished.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/finished_spec.rb