This is Mezuro! A free (with the same meaning as freedom) web platform for collaborative source code evalution.
+
+
Here you can evaluate your source code with most of the SCM, just by giving it's URL. For now you can evaluate Java, C/C++ and Python source-code, but soon we hope to support more languages!
+Mezuro is the front-end for the <%= link_to 'Kalibro Project', 'https://github.com/mezuro/kalibro' %>. It is intended to be a service where you can evaluate your code quality and, if you want, define wich set of metrics you want to use.
+
\ No newline at end of file
diff --git a/config/locales/en.bootstrap.yml b/config/locales/en.bootstrap.yml
new file mode 100644
index 0000000..c98d8d8
--- /dev/null
+++ b/config/locales/en.bootstrap.yml
@@ -0,0 +1,18 @@
+# Sample localization file for English. Add more files in this directory for other locales.
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
+
+en:
+ helpers:
+ actions: "Actions"
+ links:
+ back: "Back"
+ cancel: "Cancel"
+ confirm: "Are you sure?"
+ destroy: "Delete"
+ new: "New"
+ edit: "Edit"
+ titles:
+ edit: "Edit %{model}"
+ save: "Save %{model}"
+ new: "New %{model}"
+ delete: "Delete %{model}"
diff --git a/features/homepage.feature b/features/homepage.feature
index e02928b..1c52dcd 100644
--- a/features/homepage.feature
+++ b/features/homepage.feature
@@ -7,8 +7,8 @@ Feature: Homepage
Given I am at the homepage
Then I should see Login
And I should see Sign Up
- And I should see Latest Projects
- And I should see All Projects
+ And I should see Latest projects
+ And I should see Project
Scenario: Signed in
Given I am a regular user
@@ -16,5 +16,5 @@ Feature: Homepage
And I am at the homepage
Then I should see Edit
And I should see Logout
- And I should see Latest Projects
- And I should see All Projects
\ No newline at end of file
+ And I should see Latest projects
+ And I should see Project
\ No newline at end of file
diff --git a/features/project/create.feature b/features/project/create.feature
index 8485346..21cbecb 100644
--- a/features/project/create.feature
+++ b/features/project/create.feature
@@ -17,7 +17,7 @@ Feature: Project Creation
And I am at the New Project page
And I fill the Name field with "Kalibro"
And I fill the Description field with "Web Service to collect metrics"
- When I press the Create Project button
+ When I press the Save button
Then I should see Kalibro
And I should see Web Service to collect metrics
@@ -29,7 +29,7 @@ Feature: Project Creation
And I am at the New Project page
And I fill the Name field with "Kalibro"
And I fill the Description field with "Web Service to collect metrics"
- When I press the Create Project button
+ When I press the Save button
Then I should see There's already
@kalibro_restart
@@ -39,5 +39,5 @@ Feature: Project Creation
And I am at the New Project page
And I fill the Name field with " "
And I fill the Description field with "Web Service to collect metrics"
- When I press the Create Project button
+ When I press the Save button
Then I should see Name can't be blank
\ No newline at end of file
diff --git a/features/project/edition.feature b/features/project/edition.feature
index b76b1d1..a0357fa 100644
--- a/features/project/edition.feature
+++ b/features/project/edition.feature
@@ -18,8 +18,8 @@ Feature: Project
And I am signed in
And I have a sample project
And I am at the All Projects page
- Then I should not see Edit
-
+ Then I should not see "Edit" within "table tr td"
+
@kalibro_restart
Scenario: Should not render the edit page if the project doesn't belongs to the current user
Given I am a regular user
@@ -47,7 +47,7 @@ Feature: Project
And I am at the sample project edit page
And I fill the Name field with "Kalibro"
And I fill the Description field with "Web Service to collect metrics"
- When I press the Update button
+ When I press the Save button
Then I should see Kalibro
And I should see Web Service to collect metrics
@@ -59,7 +59,7 @@ Feature: Project
And I own a project named "Kalibro"
And I am at the sample project edit page
And I fill the Name field with "Qt-Calculator"
- When I press the Update button
+ When I press the Save button
Then I should see There's already
@kalibro_restart
@@ -69,7 +69,7 @@ Feature: Project
And I own a sample project
And I am at the sample project edit page
And I fill the Description field with "Web Service to collect metrics"
- When I press the Update button
+ When I press the Save button
And I should see Web Service to collect metrics
@kalibro_restart
@@ -79,5 +79,5 @@ Feature: Project
And I own a sample project
And I am at the sample project edit page
And I fill the Name field with " "
- When I press the Update button
+ When I press the Save button
Then I should see Name can't be blank
diff --git a/features/project/listing.feature b/features/project/listing.feature
index de6fcee..c12a381 100644
--- a/features/project/listing.feature
+++ b/features/project/listing.feature
@@ -5,7 +5,7 @@ Feature: Project listing
Scenario: Listing projects
Given I am at the homepage
- When I click the All Projects link
+ When I click the Project link
Then I should see Listing Projects
And I should see Name
And I should see Description
@@ -27,14 +27,4 @@ Feature: Project listing
When I click the Show link
Then I should see Name
And I should see Description
- And I should see Back
- And the sample project should be there
-
- @wip @kalibro_restart
- Scenario: Should go back to the All Projects page from show project view
- Given I am a regular user
- And I am signed in
- And I have a sample project
- And I am at the Sample Project page
- When I click the Back link
- Then I should be in the All Projects page
\ No newline at end of file
+ And the sample project should be there
\ No newline at end of file
diff --git a/features/step_definitions/project_steps.rb b/features/step_definitions/project_steps.rb
index 624ca8d..a57c590 100644
--- a/features/step_definitions/project_steps.rb
+++ b/features/step_definitions/project_steps.rb
@@ -42,6 +42,10 @@ Then(/^I should not see (.+)$/) do |text|
page.should_not have_content(text)
end
+Then(/^I should not see "(.+)"" within "(.+)"$/) do |text, selector|
+ page.find(selector).should_not have_content(text)
+end
+
Then(/^the sample project should be there$/) do
page.should have_content(@project.name)
page.should have_content(@project.description)
--
libgit2 0.21.2