Sha256: 55eae342b4a5689778983db360dde1070766a929821ab51418cb20e2d201ea51

Contents?: true

Size: 847 Bytes

Versions: 6

Compression:

Stored size: 847 Bytes

Contents

require 'spec_helper'

describe JekyllGithubSample::FileHelper do

  let(:path) { '/bwillis/versioncake/blob/master/lib/versioncake/configuration.rb' }

  subject { JekyllGithubSample::FileHelper.new(path) }

  context '#initialize' do
    it 'does not fail to initialize with the path' do
      expect {
        subject
      }.not_to raise_error
    end
  end

  its(:user_uri)     { should == 'https://github.com/bwillis' }
  its(:web_uri)      { should == 'https://github.com/bwillis/versioncake/blob/master/lib/versioncake/configuration.rb' }
  its(:raw_uri)      { should == 'https://raw.githubusercontent.com/bwillis/versioncake/master/lib/versioncake/configuration.rb' }
  its(:filename)     { should == 'lib/versioncake/configuration.rb' }
  its(:user)         { should == 'bwillis' }
  its(:project_name) { should == 'versioncake' }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll_github_sample-0.3.2 spec/lib/jekyll_github_sample/file_helper_spec.rb
jekyll_github_sample-0.3.1 spec/lib/jekyll_github_sample/file_helper_spec.rb
jekyll_github_sample-0.3.0 spec/lib/jekyll_github_sample/file_helper_spec.rb
jekyll_github_sample-0.2.0 spec/lib/jekyll_github_sample/file_helper_spec.rb
jekyll_github_sample-0.1.1 spec/lib/jekyll_github_sample/file_helper_spec.rb
jekyll_github_sample-0.1.0 spec/lib/jekyll_github_sample/file_helper_spec.rb