Sha256: 1a7b1d4e5dc4726be47b1e9f16d491a6863cd517014029422f9609e3ced282ca

Contents?: true

Size: 350 Bytes

Versions: 59

Compression:

Stored size: 350 Bytes

Contents

require 'test_helper'

  class ClarkKent::ReportTest < ActiveSupport::TestCase
    test "can't save without a sharing scope id if the sharing scope is custom" do
      report = ClarkKent::Report.new :sharing_scope_type => "Department"
      report.save
      assert_includes(report.errors.full_messages, "Sharing scope can't be blank")
    end
  end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
clark_kent-0.3.0 test/models/clark_kent/report_test.rb
clark_kent-0.2.10 test/models/clark_kent/report_test.rb
clark_kent-0.2.8 test/models/clark_kent/report_test.rb
clark_kent-0.2.7 test/models/clark_kent/report_test.rb
clark_kent-0.2.6 test/models/clark_kent/report_test.rb
clark_kent-0.2.5 test/models/clark_kent/report_test.rb
clark_kent-0.2.4 test/models/clark_kent/report_test.rb
clark_kent-0.2.3 test/models/clark_kent/report_test.rb
clark_kent-0.2.2 test/models/clark_kent/report_test.rb
clark_kent-0.2.1 test/models/clark_kent/report_test.rb
clark_kent-0.2.0 test/models/clark_kent/report_test.rb
clark_kent-0.1.7 test/models/clark_kent/report_test.rb
clark_kent-0.1.6 test/models/clark_kent/report_test.rb
clark_kent-0.1.5 test/models/clark_kent/report_test.rb
clark_kent-0.1.4 test/models/clark_kent/report_test.rb
clark_kent-0.1.3 test/models/clark_kent/report_test.rb
clark_kent-0.1.2 test/models/clark_kent/report_test.rb
clark_kent-0.1.1 test/models/clark_kent/report_test.rb
clark_kent-0.1.0 test/models/clark_kent/report_test.rb