Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
app_revision / spec / features / app_revision_engine_spec.rb
Size: Mime:
require 'spec_helper'

feature 'something' do
  context "when a REVISION file doesn't exist" do
    scenario 'visiting the current revision path' do
      visit '/revisions/current'
      expect(page).to have_content('UNKNOWN')
    end
  end

  context 'when a REVISION file exists' do
    before do
      File.should_receive(:read).and_return('ABCDEF')
    end

    scenario 'visiting the current revision path' do
      visit '/revisions/current'
      expect(page).to have_content('ABCDEF')
    end
  end
end