Commit 2a95a3514fc40eb6b216f112731b16439d48c518

Authored by Sergey Kuznetsov
1 parent 416c15a2
Exists in master and in 1 other branch production

Reverted old changes to App.github_url_to_file method (spec fixed too)

Showing 2 changed files with 0 additions and 6 deletions   Show diff stats
app/models/app.rb
... ... @@ -125,7 +125,6 @@ class App
125 125 end
126 126  
127 127 def github_url_to_file(file)
128   - file = "/#{file}" unless file.start_with? '/'
129 128 "#{github_url}/blob/#{repo_branch + file}"
130 129 end
131 130  
... ...
spec/models/app_spec.rb
... ... @@ -98,11 +98,6 @@ describe App do
98 98 app = Fabricate(:app, :github_repo => "errbit/errbit")
99 99 app.github_url_to_file('/path/to/file').should == "https://github.com/errbit/errbit/blob/master/path/to/file"
100 100 end
101   -
102   - it 'resolves to full path to file without leading root symbol' do
103   - app = Fabricate(:app, :github_repo => "errbit/errbit")
104   - app.github_url_to_file('path/to/file').should == "https://github.com/errbit/errbit/blob/master/path/to/file"
105   - end
106 101 end
107 102  
108 103 context '#github_repo?' do
... ...