constructor-pages 0.8.14 → 0.8.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afc879cddc8cde3b7f851b478ff12b3f942faccb
4
- data.tar.gz: 5a1d72dcc30cf19cc5f04dceff14a1b2b499573e
3
+ metadata.gz: 00b6e78a7a35a0e4548ea458ac79bb5f178899a9
4
+ data.tar.gz: 1c1bf4f830c9de02474c1a80934049e2e257f359
5
5
  SHA512:
6
- metadata.gz: cd020501cf71f120ada9069ab040f2f862cadc535b3c9e94288d7cbae0b5a9bb173ea7b143b5c392e92045e74ca5d0fe52b190b66cc8be6f559ed3cfc44d7df1
7
- data.tar.gz: cd27bf622efce7976d2e1519a71dc5ab23c71cb7e926b829ca54f4838a59c0910e50d86af4a1b5eb590c811e6c01ad1154312026de535e77ffe9d16f7c2226ec
6
+ metadata.gz: 22b23f279d6cde8ac05c05b40c78cb356d3babfbc8a39382240cc5c916cce15c7b1013a144b502bb281a419043f5090ded807a097b2dad5345208f239a6a4aa7
7
+ data.tar.gz: d9f9d38d38774df9fa0f0430cdadc04845829d39b1322ce35f53acb3dc642f4974305934c4acd92b82201b2e7378c6e0e5a5ef3b37e1a15f9f5903fc55f5f21f
@@ -100,7 +100,7 @@ module ConstructorPages
100
100
  :in_map,
101
101
  :in_menu,
102
102
  :in_url,
103
- :link
103
+ :redirect
104
104
  )
105
105
  end
106
106
 
@@ -92,7 +92,6 @@ module ConstructorPages
92
92
  it 'should redirect if redirect specified' do
93
93
  _page = Page.create name: 'First page', template: @template
94
94
  _template = Template.create name: 'Home page', code_name: 'home_page'
95
- Page.create name: 'Second page', template: _template
96
95
 
97
96
  visit _page.full_url
98
97
  current_path.should == '/first-page'
@@ -102,6 +101,13 @@ module ConstructorPages
102
101
 
103
102
  visit _page.full_url
104
103
  current_path.should == '/second-page'
104
+
105
+ visit pages.edit_page_path(_page)
106
+ fill_in 'Redirect', with: '/third-page'
107
+ click_button 'Update Page'
108
+
109
+ visit _page.full_url
110
+ current_path.should == '/third-page'
105
111
  end
106
112
  end
107
113
 
@@ -34,7 +34,6 @@ module ConstructorPages
34
34
  _page.reload
35
35
  _page.logo.should_not be_nil
36
36
  visit pages.edit_page_path(_page)
37
- save_and_open_page
38
37
  page.should have_selector('img[alt="Upload image"]')
39
38
  end
40
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constructor-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.14
4
+ version: 0.8.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zotov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-06 00:00:00.000000000 Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: constructor-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.14
19
+ version: 0.8.15
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.14
26
+ version: 0.8.15
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dragonfly
29
29
  requirement: !ruby/object:Gem::Requirement