Sha256: 8cc4fd0882e903fa22e7e45f507982fd5ead9b23f825dbbf67c69eaf5d156888

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

require 'spec_helper'

describe Portier::Base do
  include ViewHelpers

  describe "#authorize_action" do
    pending
  end

  describe "#can?" do
    before { @app = app_mock }
    context "with an unexisting permission file" do
      before { @base = Portier::Base.new(@app, double(:user)) }

      context "when checking if user can edit record" do
        specify { expect { @base.can?(:edit, double(:user)) }.to raise_error(Portier::Uninitalized) }
      end
    end
  end

  describe "#can_view?" do
    pending
  end

  describe "#permitted_params" do
    pending
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
portier-1.1.1 spec/portier/base_spec.rb
portier-1.1.0 spec/portier/base_spec.rb
portier-1.0.3 spec/portier/base_spec.rb