Sha256: 9bc68c99a6f676858ba88454a901ad6bc235b1233ab3e50950d917a89ef63e52

Contents?: true

Size: 797 Bytes

Versions: 30

Compression:

Stored size: 797 Bytes

Contents

require 'controllers/dummy_common_controller'

describe ActivityNotification::DummyCommonController, type: :controller do

  describe "#set_index_options" do
    it "raises NotImplementedError" do
      expect { controller.send(:set_index_options) }
        .to raise_error(NotImplementedError, /You have to implement .+#set_index_options/)
    end
  end

  describe "#load_index" do
    it "raises NotImplementedError" do
      expect { controller.send(:load_index) }
        .to raise_error(NotImplementedError, /You have to implement .+#load_index/)
    end
  end

  describe "#controller_path" do
    it "raises NotImplementedError" do
      expect { controller.send(:controller_path) }
        .to raise_error(NotImplementedError, /You have to implement .+#controller_path/)
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
activity_notification-2.3.3 spec/controllers/common_controller_spec.rb
activity_notification-2.3.2 spec/controllers/common_controller_spec.rb
activity_notification-2.3.1 spec/controllers/common_controller_spec.rb
activity_notification-2.3.0 spec/controllers/common_controller_spec.rb
activity_notification-2.2.4 spec/controllers/common_controller_spec.rb
activity_notification-2.2.3 spec/controllers/common_controller_spec.rb
activity_notification-2.2.2 spec/controllers/common_controller_spec.rb
activity_notification-2.2.1 spec/controllers/common_controller_spec.rb
activity_notification-2.2.0 spec/controllers/common_controller_spec.rb
activity_notification-2.1.4 spec/controllers/common_controller_spec.rb
activity_notification-2.1.3 spec/controllers/common_controller_spec.rb
activity_notification-2.1.2 spec/controllers/common_controller_spec.rb
activity_notification-2.1.1 spec/controllers/common_controller_spec.rb
activity_notification-2.1.0 spec/controllers/common_controller_spec.rb
activity_notification-2.0.0 spec/controllers/common_controller_spec.rb
activity_notification-1.7.1 spec/controllers/common_controller_spec.rb
activity_notification-1.7.0 spec/controllers/common_controller_spec.rb
activity_notification-1.6.1 spec/controllers/common_controller_spec.rb
activity_notification-1.6.0 spec/controllers/common_controller_spec.rb
activity_notification-1.5.1 spec/controllers/common_controller_spec.rb