Sha256: b4855a4e964ef890613f3fe5ecb0b4e9194f998276c0f19bdd52fce15d2381d6
Contents?: true
Size: 569 Bytes
Versions: 5
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' describe Ghit::Globals do subject { described_class.new } before :each do expect(Ghit::RemoteExtracter).to receive(:extract!).and_return "origin\tgit@github.com:someone/something.git (fetch)" end it '#author - returns author Github username' do expect(subject.author).to eq "someone" end it '#repository - returns Github repository name' do expect(subject.repository).to eq "something" end it '#url - returns Github repository url' do expect(subject.url).to eq "https://github.com/someone/something" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ghit-0.2.4 | spec/globals_spec.rb |
ghit-0.2.3 | spec/globals_spec.rb |
ghit-0.2.2 | spec/globals_spec.rb |
ghit-0.2.1 | spec/globals_spec.rb |
ghit-0.2.0 | spec/globals_spec.rb |