copycat 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/stylesheets/copycat_engine.css +18 -2
- data/app/controllers/copycat_translations_controller.rb +15 -12
- data/app/views/copycat_translations/edit.html.erb +7 -8
- data/config/routes.rb +1 -1
- data/lib/copycat/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +672 -5652
- data/spec/dummy/log/test.log +3397 -19790
- data/spec/dummy/tmp/cache/assets/C19/060/sprockets%2F125436f53217b7f564aa5016d1168709 +0 -0
- data/spec/dummy/tmp/cache/assets/CB3/6E0/sprockets%2F0f4c96b04436bf7ae900561753947d4c +0 -0
- data/spec/dummy/tmp/cache/assets/DA4/EE0/sprockets%2Fcd39e3d56788faea331e0f5bac67329b +0 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- data/spec/integration/copycat_spec.rb +41 -0
- metadata +6 -4
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
23964
|
@@ -195,6 +195,47 @@ feature "copycat index" do
|
|
195
195
|
|
196
196
|
end
|
197
197
|
|
198
|
+
feature "copycat edit" do
|
199
|
+
before do
|
200
|
+
Factory(:copycat_translation, :key => "foo", :value => "bar")
|
201
|
+
page.driver.browser.basic_authorize COPYCAT_USERNAME, COPYCAT_PASSWORD
|
202
|
+
visit copycat_translations_path
|
203
|
+
end
|
204
|
+
|
205
|
+
scenario "visit edit form" do
|
206
|
+
fill_in 'search', :with => 'foo'
|
207
|
+
click_button 'Search'
|
208
|
+
click_link 'foo'
|
209
|
+
fill_in "copycat_translation[value]", :with => 'baz'
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
feature "copycat update, delete" do
|
214
|
+
before do
|
215
|
+
Factory(:copycat_translation, :key => "foo", :value => "bar")
|
216
|
+
page.driver.browser.basic_authorize COPYCAT_USERNAME, COPYCAT_PASSWORD
|
217
|
+
visit copycat_translations_path
|
218
|
+
fill_in 'search', :with => 'foo'
|
219
|
+
click_button 'Search'
|
220
|
+
click_link 'foo'
|
221
|
+
end
|
222
|
+
|
223
|
+
scenario "update" do
|
224
|
+
fill_in "copycat_translation[value]", :with => 'baz'
|
225
|
+
click_button "Update"
|
226
|
+
current_path.should == copycat_translations_path
|
227
|
+
CopycatTranslation.find_by_key("foo").value.should == 'baz'
|
228
|
+
page.should have_content "foo updated!"
|
229
|
+
end
|
230
|
+
|
231
|
+
scenario "delete" do
|
232
|
+
click_button "Delete this item"
|
233
|
+
current_path.should == copycat_translations_path
|
234
|
+
CopycatTranslation.find_by_key("foo").should be_nil
|
235
|
+
page.should have_content "foo deleted!"
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
198
239
|
feature "downloading and uploading yaml files" do
|
199
240
|
before do
|
200
241
|
page.driver.browser.basic_authorize COPYCAT_USERNAME, COPYCAT_PASSWORD
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copycat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-03-
|
13
|
+
date: 2012-03-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &2151799260 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2151799260
|
26
26
|
description: Edit live website copy.
|
27
27
|
email:
|
28
28
|
- info@vermonster.com
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- spec/dummy/tmp/cache/assets/DBD/220/sprockets%2F0cbff5c1a349439c1c444cbb4a57acc4
|
95
95
|
- spec/dummy/tmp/cache/assets/DDD/780/sprockets%2Fe7880b84c3ecb507fabc99b9ef6b70e3
|
96
96
|
- spec/dummy/tmp/cache/assets/DF8/310/sprockets%2Fccb12c4009c2f876d51dee8bae4c64ec
|
97
|
+
- spec/dummy/tmp/pids/server.pid
|
97
98
|
- spec/factories/copycat_translations.rb
|
98
99
|
- spec/integration/copycat_spec.rb
|
99
100
|
- spec/integration/dummy_spec.rb
|
@@ -172,6 +173,7 @@ test_files:
|
|
172
173
|
- spec/dummy/tmp/cache/assets/DBD/220/sprockets%2F0cbff5c1a349439c1c444cbb4a57acc4
|
173
174
|
- spec/dummy/tmp/cache/assets/DDD/780/sprockets%2Fe7880b84c3ecb507fabc99b9ef6b70e3
|
174
175
|
- spec/dummy/tmp/cache/assets/DF8/310/sprockets%2Fccb12c4009c2f876d51dee8bae4c64ec
|
176
|
+
- spec/dummy/tmp/pids/server.pid
|
175
177
|
- spec/factories/copycat_translations.rb
|
176
178
|
- spec/integration/copycat_spec.rb
|
177
179
|
- spec/integration/dummy_spec.rb
|