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.11.3 test/models/clark_kent/report_test.rb
clark_kent-0.11.2 test/models/clark_kent/report_test.rb
clark_kent-0.11.1 test/models/clark_kent/report_test.rb
clark_kent-0.11.0 test/models/clark_kent/report_test.rb
clark_kent-0.10.4 test/models/clark_kent/report_test.rb
clark_kent-0.10.2 test/models/clark_kent/report_test.rb
clark_kent-0.10.1 test/models/clark_kent/report_test.rb
clark_kent-0.10.0 test/models/clark_kent/report_test.rb
clark_kent-0.9.9 test/models/clark_kent/report_test.rb
clark_kent-0.9.8 test/models/clark_kent/report_test.rb
clark_kent-0.9.7 test/models/clark_kent/report_test.rb
clark_kent-0.9.6 test/models/clark_kent/report_test.rb
clark_kent-0.9.5 test/models/clark_kent/report_test.rb
clark_kent-0.9.4 test/models/clark_kent/report_test.rb
clark_kent-0.9.2 test/models/clark_kent/report_test.rb
clark_kent-0.9.1 test/models/clark_kent/report_test.rb
clark_kent-0.9.0 test/models/clark_kent/report_test.rb
clark_kent-0.8.11 test/models/clark_kent/report_test.rb
clark_kent-0.8.10 test/models/clark_kent/report_test.rb
clark_kent-0.8.9 test/models/clark_kent/report_test.rb