diff --git a/features/step_definitions/mezuro_steps.rb b/features/step_definitions/mezuro_steps.rb index 96f3bb5..e588523 100644 --- a/features/step_definitions/mezuro_steps.rb +++ b/features/step_definitions/mezuro_steps.rb @@ -1,4 +1,4 @@ -When /^I create a Mezuro (project|configuration) with the following data$/ do |type, fields| +When /^I create a Mezuro (project|configuration|reading group) with the following data$/ do |type, fields| click_link ("Mezuro " + type) fields.rows_hash.each do |name, value| diff --git a/plugins/mezuro/features/reading_group.feature b/plugins/mezuro/features/reading_group.feature new file mode 100644 index 0000000..626edbd --- /dev/null +++ b/plugins/mezuro/features/reading_group.feature @@ -0,0 +1,26 @@ +Feature: Reading Group + As a mezuro user + I want to create, edit and remove a Mezuro reading group + + Background: + Given the following users + | login | name | + | joaosilva | Joao Silva | + Given I am logged in as "joaosilva" + And "Mezuro" plugin is enabled + + Scenario: I see Mezuro reading group's input form + When I follow "Mezuro reading group" + Then I should see "Title" + And I should see "Description" + + @selenium + Scenario: I create a Mezuro reading group with valid attributes + Given I am on joaosilva's control panel + When I create a Mezuro reading group with the following data + | Title | Sample Reading Group | + | Description | Sample Description | + Then I should see "Sample Reading Group" + And I should see "Sample Description" + And I should see "Readings" + And I should see "Add Reading" diff --git a/plugins/mezuro/lib/mezuro_plugin.rb b/plugins/mezuro/lib/mezuro_plugin.rb index e985759..6be13c1 100644 --- a/plugins/mezuro/lib/mezuro_plugin.rb +++ b/plugins/mezuro/lib/mezuro_plugin.rb @@ -28,7 +28,7 @@ class MezuroPlugin < Noosfero::Plugin {:title => _('Mezuro project'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ProjectContent'}, :icon => 'mezuro' } else [{:title => _('Mezuro configuration'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ConfigurationContent'}, :icon => 'mezuro' }, - {:title => _('Mezuro Reading Group'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ReadingGroupContent'}, :icon => 'mezuro' }] + {:title => _('Mezuro reading group'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ReadingGroupContent'}, :icon => 'mezuro' }] end end -- libgit2 0.21.2