Permalink
Browse files

cukes for admin/taxonomy .also added factory for taxonomy

  • Loading branch information...
1 parent 5da74e8 commit 91a33d0400d7a37a17b0544272b0e79ef99b0141 Neeraj Singh committed with schof Jan 21, 2011
@@ -1,4 +1,4 @@
-<table class="index">
+<table class="index" id='listing_taxonomies'>
<tr>
<th><%= t("name") %></th>
<th></th>
@@ -40,5 +40,9 @@ Feature: Admin visiting configurations
Then show me the page
Then I should see listing payment methods tabular attributes
-
+ When I follow "Configuration"
+ Given 2 taxonomies exist
+ When I follow "Taxonomies"
+ Then show me the page
+ Then I should see listing taxonomies tabular attributes
@@ -1,3 +1,12 @@
+Then /^I should see listing taxonomies tabular attributes$/ do
+ output = tableish('table#listing_taxonomies tr', 'td,th')
+ data = output[0]
+ data[0].should == 'Name'
+
+ data = output[1]
+ #data[0].should == Taxonomy.limit(1).order('name asc').to_a.first.name
+end
+
Then /^I should see listing payment methods tabular attributes$/ do
output = tableish('table#listing_payment_methods tr', 'td,th')
data = output[0]
@@ -5,4 +5,4 @@
record.description { Faker::Lorem.sentence }
record.tax_rates {[TaxRate.new(:amount => 0.05, :calculator => Calculator::Vat.new, :zone => Zone.global)]}
-end
+end
@@ -0,0 +1,3 @@
+Factory.define(:taxonomy) do |record|
+ record.name "Brand"
+end

0 comments on commit 91a33d0

Please sign in to comment.