static_blocks 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/static_blocks/static_blocks.css.scss +4 -0
- data/app/controllers/static_blocks/snippets_controller.rb +23 -9
- data/app/models/static_blocks/snippet.rb +32 -10
- data/app/views/layouts/static_blocks/application.html.erb +4 -4
- data/app/views/static_blocks/snippets/index.html.erb +5 -4
- data/app/views/static_blocks/snippets/show.html.erb +12 -17
- data/lib/static_blocks/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +68404 -0
- data/spec/dummy/log/test.log +4435 -0
- data/spec/dummy/tmp/cache/assets/C87/620/sprockets%2F3432446e738294254b2a8edee23c7809 +0 -0
- data/spec/dummy/tmp/cache/assets/CC1/5A0/sprockets%2F880ce77a9b28981a952adc78253d1844 +0 -0
- data/spec/dummy/tmp/cache/assets/D11/9D0/sprockets%2F0bd4e6571b02cf9b6b48316e7b72e791 +0 -0
- data/spec/dummy/tmp/cache/assets/D50/470/sprockets%2F2bc1690c65d8ffbff84b58e810e63693 +0 -0
- data/spec/dummy/tmp/cache/assets/DA2/820/sprockets%2F9f81de74a49c9eaf25ad2de0d51c7801 +0 -0
- data/spec/dummy/tmp/cache/sass/539156597b6c6280022503b5a967d95c6f1abc4c/static_blocks.css.scssc +0 -0
- data/spec/dummy/tmp/pids/server.pid +1 -1
- data/spec/integration/import_export_spec.rb +3 -3
- data/spec/integration/search_spec.rb +7 -7
- data/spec/integration/translations_spec.rb +1 -1
- metadata +1 -1
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/dummy/tmp/cache/sass/539156597b6c6280022503b5a967d95c6f1abc4c/static_blocks.css.scssc
CHANGED
Binary file
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
16769
|
@@ -4,14 +4,14 @@ feature "csv import and export" do
|
|
4
4
|
|
5
5
|
before do
|
6
6
|
visit "/static_blocks"
|
7
|
-
click_link "New
|
7
|
+
click_link "New snippet"
|
8
8
|
fill_in "Title", :with => "foo"
|
9
9
|
fill_in "Content", :with => "english bar"
|
10
10
|
click_button "Submit"
|
11
11
|
end
|
12
12
|
|
13
13
|
scenario "can download a default csv before a translation" do
|
14
|
-
click_link "Export"
|
14
|
+
click_link "Export snippets"
|
15
15
|
page.should have_content("id,title,content,status,created_at,updated_at")
|
16
16
|
page.should have_content("1,foo,english bar,published,")
|
17
17
|
end
|
@@ -26,7 +26,7 @@ feature "csv import and export" do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
scenario "the original static block fields will be changed after a translation" do
|
29
|
-
click_link "Export"
|
29
|
+
click_link "Export snippets"
|
30
30
|
page.should have_content("id,title,content,status,created_at,updated_at")
|
31
31
|
page.should have_content("1,foo,wookie bar,published,")
|
32
32
|
end
|
@@ -1,23 +1,23 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
feature "search
|
3
|
+
feature "search snippets" do
|
4
4
|
|
5
5
|
before do
|
6
6
|
visit "/static_blocks"
|
7
|
-
click_link "New
|
7
|
+
click_link "New snippet"
|
8
8
|
fill_in "Title", :with => "foo"
|
9
9
|
fill_in "Content", :with => "english bar"
|
10
10
|
click_button "Submit"
|
11
|
-
click_link "List
|
11
|
+
click_link "List snippets"
|
12
12
|
end
|
13
13
|
|
14
|
-
scenario "can search default
|
14
|
+
scenario "can search default snippets" do
|
15
15
|
fill_in "Content contains", :with => "english bar"
|
16
16
|
click_button "Search"
|
17
17
|
page.should have_content("english bar")
|
18
18
|
end
|
19
19
|
|
20
|
-
describe "search translated
|
20
|
+
describe "search translated snippets" do
|
21
21
|
|
22
22
|
before do
|
23
23
|
visit "/static_blocks"
|
@@ -25,10 +25,10 @@ feature "search blocks" do
|
|
25
25
|
click_link "Edit"
|
26
26
|
fill_in "snippet_content", :with => "wookie bar"
|
27
27
|
click_button "Submit"
|
28
|
-
click_link "List
|
28
|
+
click_link "List snippets"
|
29
29
|
end
|
30
30
|
|
31
|
-
scenario "can search translated
|
31
|
+
scenario "can search translated snippets" do
|
32
32
|
fill_in "Title contains", :with => "foo"
|
33
33
|
fill_in "Content contains", :with => "wookie bar"
|
34
34
|
select('Published', :from => "Status")
|
@@ -13,7 +13,7 @@ feature "translations" do
|
|
13
13
|
fill_in "snippet_content", :with => "wookie bar"
|
14
14
|
click_button "Submit"
|
15
15
|
page.should have_content("Static block was successfully updated.")
|
16
|
-
click_link "List
|
16
|
+
click_link "List snippets"
|
17
17
|
page.should have_content("wookie bar")
|
18
18
|
page.should_not have_content("english bar")
|
19
19
|
click_link "en"
|