Commit d53c3cc174710c661667c31f1d41b6034f5c2d99

Authored by Heitor
1 parent b12a6db4

Translation and test description fixes for PR #206

Signed-off-by: Pedro Scocco <pedroscocco@gmail.com>
config/locales/views/en.yml
... ... @@ -97,4 +97,4 @@ en:
97 97 create: "Create %{model}"
98 98 add: "Add"
99 99 sure_destroy: "Are you sure that you want to destroy this %{model}?"
100   - idiom: "Idiom"
  100 + idiom: "Language"
... ...
spec/helpers/projects_helper_spec.rb
... ... @@ -52,23 +52,23 @@ describe ProjectsHelper, :type =&gt; :helper do
52 52 project.expects(:attributes).twice.returns(project_attributes)
53 53 end
54 54  
55   - it 'is expect to return an image tag with the project attribute URL' do
  55 + it 'is expected to return an image tag with the project attribute URL' do
56 56 expect(helper.project_image_html(project)).to include("<img")
57 57 expect(helper.project_image_html(project)).to include(project_attributes.image_url)
58 58 end
59 59 end
60 60  
61   - context 'when the project does not has an image' do
  61 + context 'when the project does not have an image' do
62 62 before :each do
63 63 project_attributes.image_url = ""
64 64 project.expects(:attributes).twice.returns(project_attributes)
65 65 end
66 66  
67   - it 'is expect to return a default image icon with a message' do
  67 + it 'is expected to return a default image icon with a message' do
68 68 expect(helper.project_image_html(project)).to include("<i class")
69 69 expect(helper.project_image_html(project)).to include(I18n.t('no_image_available'))
70 70 end
71 71 end
72 72 end
73 73  
74   -end
75 74 \ No newline at end of file
  75 +end
... ...