Sha256: 46fb3e4dd37b7da0c403d93bd7ad424246a29a0a8680fa6000f78d9b2385ece8

Contents?: true

Size: 369 Bytes

Versions: 23

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'

describe Krikri::ApplicationHelper, :type => :helper do
  describe `#local_name` do
    let(:uri) { 'http://example.org/blah/moomin' }
    let(:stub) { 'moomin' }

    it 'splits string' do
      expect(helper.local_name(uri)).to eq stub
    end

    it 'splits URI' do
      expect(helper.local_name(RDF::URI(uri))).to eq stub
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
krikri-0.13.2 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.13.1 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.13.0 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.12.4 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.11.2 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.11.1 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.11.0 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.10.1 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.9 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.8 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.7 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.6 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.5 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.4 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.2 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.8.0 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.7.3 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.7.2 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.7.1 spec/helpers/krikri/application_helper_spec.rb~
krikri-0.6.0 spec/helpers/krikri/application_helper_spec.rb~