Skip to content

Commit

Permalink
Removed deprecated #s and #copy_for methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Jan 31, 2011
1 parent 120c74e commit 4f6e1ea
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 161 deletions.
26 changes: 0 additions & 26 deletions features/rails.feature
Expand Up @@ -132,32 +132,6 @@ Feature: Using copycopter in a rails app
| key | draft content |
| en.users.index.unknown-test | Unknown |

Scenario: backwards compatibility
Given the "abc123" project has the following blurbs:
| key | draft content |
| en.users.index.controller-test | Controller blurb |
| en.users.index.view-test | View blurb |
When I write to "app/controllers/users_controller.rb" with:
"""
class UsersController < ActionController::Base
def index
@text = s('.controller-test')
render
end
end
"""
When I route the "users" resource
And I write to "app/views/users/index.html.erb" with:
"""
<%= @text %>
<%= s(".view-test", "default") %>
"""
When I start the application
And I wait for changes to be synchronized
And I visit /users/
Then the response should contain "Controller blurb"
And the response should contain "View blurb"

Scenario: configure a bad api key
When I configure the copycopter client with api key "bogus"
And I start the application
Expand Down
40 changes: 0 additions & 40 deletions lib/copycopter_client/helper.rb

This file was deleted.

9 changes: 0 additions & 9 deletions lib/copycopter_client/rails.rb
@@ -1,12 +1,3 @@
require 'copycopter_client/helper'

if defined?(ActionController::Base)
ActionController::Base.send :include, CopycopterClient::Helper
end
if defined?(ActionView::Base)
ActionView::Base.send :include, CopycopterClient::Helper
end

module CopycopterClient
# Responsible for Rails initialization
module Rails
Expand Down
86 changes: 0 additions & 86 deletions spec/copycopter_client/helper_spec.rb

This file was deleted.

0 comments on commit 4f6e1ea

Please sign in to comment.