Sha256: e1f1959032a96c4a0f961b761de04dd31d34ff643117db5494117f5aa6a1581b
Contents?: true
Size: 484 Bytes
Versions: 2
Compression:
Stored size: 484 Bytes
Contents
require 'spec_helper' require 'seory/condition/slug' describe Seory::Condition::Slug do context 'with nested controller slug' do let(:controller) do double('controller', { controller_name: 'products', controller_path: 'contents/products', action_name: 'index' }) end let(:slug_condition) { Seory::Condition::Slug.new('contents/products#index') } specify { expect(slug_condition.match?(controller)).to be_truthy } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seory-0.2.0 | spec/seory/condition/slug_spec.rb |
seory-0.1.0 | spec/seory/condition/slug_spec.rb |