Skip to content

Commit

Permalink
Merge pull request #24 from embark/embark/README
Browse files Browse the repository at this point in the history
Clarify and correct rspec integration section
  • Loading branch information
tarcieri committed Jun 14, 2016
2 parents 3f2a683 + fce22cd commit 37ca299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,12 @@ RSpec.describe "example_acl.yml", acl_spec: true do
subject do
Rails::Auth::ACL.from_yaml(
File.read("/path/to/example_acl.yml"),
matchers: { allow_x509_subject: Rails::Auth::X509::Matcher }
matchers: { allow_x509_subject: Rails::Auth::X509::Matcher } # add your custom matchers too
)
end

describe "/path/to/resource" do
it { is_expected.to permit get_request(credentials: example_credentials) }
it { is_expected.to permit get_request(certificates: example_credentials) }
it { is_expected.not_to permit get_request) }
end
end
Expand Down

0 comments on commit 37ca299

Please sign in to comment.