noodall-ui 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gemspec
6
6
  # Required for running as demo rails app
7
7
  gem 'rails', '~> 3.0.1'
8
8
  gem 'dragonfly', '~> 0.9.4'
9
+ gem 'mm-versionable', '0.2.5'
9
10
 
10
11
  # Bundle gems for the local environment. Make sure to
11
12
  # put test-only gems in this group so their generators
@@ -3,14 +3,14 @@ Feature: Sort nodes by column
3
3
  In order to peruse nodes more effectively
4
4
  I want to be able to order them by their various column titles
5
5
 
6
- Scenario Outline:
6
+ Scenario Outline:
7
7
  Given some nodes exist
8
8
  When I am on the content admin page
9
9
  And I follow <Title>
10
10
  Then the nodes should be ordered by <Title>
11
-
11
+
12
12
  Examples:
13
13
  | Title |
14
- | "Title" |
14
+ | "Name" |
15
15
  | "Type" |
16
16
  | "Updated" |
@@ -137,11 +137,11 @@ Then /^I should see a breadcrumb title of page$/ do
137
137
  find('.breadcrumb').find('a').should_not have_content(@_child.title)
138
138
  else
139
139
  find('.breadcrumb').should have_content(@_page.title)
140
- find('.breadcrumb').should_not have_css('a')
140
+ page.should have_css('.breadcrumb a', :count => 1)
141
141
  end
142
142
  end
143
143
 
144
144
  Then /^I should see a breadcrumb link to parent$/ do
145
- find('.breadcrumb').find('a').should have_content(@_page.title)
145
+ find('.breadcrumb li:nth-child(2) a').should have_content(@_page.title)
146
146
  end
147
147
 
@@ -1,23 +1,23 @@
1
- Given /^some nodes exist$/ do
1
+ Given /^some nodes exist$/ do
2
2
  Time.stub!(:now).and_return(Time.parse("01/01/2010 13:37"))
3
3
  f = Factory.build(:node)
4
4
  f.title = "A Header"
5
5
  f.save
6
-
6
+
7
7
  Time.stub!(:now).and_return(Time.parse("01/01/2010 14:37"))
8
8
  f = Factory.build(:node)
9
9
  f.title = "B Header"
10
10
  f.save
11
-
11
+
12
12
  Time.stub!(:now).and_return(Time.parse("01/01/2010 15:37"))
13
13
  f = Factory.build(:page_a)
14
14
  f.title = "C Header"
15
15
  f.save
16
-
16
+
17
17
  end
18
18
 
19
- Then /^the nodes should be ordered by "Title"$/ do
20
- Then %{I should see in this order: C Header, B Header, A Header}
19
+ Then /^the nodes should be ordered by "Name"$/ do
20
+ Then %{I should see in this order: A Header, B Header, C Header}
21
21
  end
22
22
 
23
23
 
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module UI
3
- VERSION = "0.4.5"
3
+ VERSION = "0.4.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-22 00:00:00.000000000Z
12
+ date: 2011-10-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: noodall-core
16
- requirement: &10879640 !ruby/object:Gem::Requirement
16
+ requirement: &19006040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.7.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10879640
24
+ version_requirements: *19006040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thoughtbot-sortable_table
27
- requirement: &10879100 !ruby/object:Gem::Requirement
27
+ requirement: &19005540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.0.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *10879100
35
+ version_requirements: *19005540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: will_paginate
38
- requirement: &10878640 !ruby/object:Gem::Requirement
38
+ requirement: &19005060 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *10878640
46
+ version_requirements: *19005060
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: dynamic_form
49
- requirement: &10878140 !ruby/object:Gem::Requirement
49
+ requirement: &19004580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *10878140
57
+ version_requirements: *19004580
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
- requirement: &10877660 !ruby/object:Gem::Requirement
60
+ requirement: &19004120 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.0.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *10877660
68
+ version_requirements: *19004120
69
69
  description: Noodall Rails User Interface Engine. Requires Noodall Core
70
70
  email:
71
71
  - steve@wearebeef.co.uk
@@ -656,7 +656,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
656
656
  version: '0'
657
657
  segments:
658
658
  - 0
659
- hash: 3473197974640341888
659
+ hash: 3390780952771030052
660
660
  required_rubygems_version: !ruby/object:Gem::Requirement
661
661
  none: false
662
662
  requirements: