As time passes it gets more difficult to enhance the particularities of hackership days. Things tend to repeat. Continue doing the morning walk, do the stand up round,though less people attend. Betahaus has introduced some Xmas in the space, in quite a subtle way.
Then back to rspec testing, red tests that have to turn green, models, associations, it seems as if it was the same, but the big difference is that now is no longer something unknown, by now those things are familiar, they are not a big mystery, they become part of everyday life, the next challenge is to improve them, time for refactoring is near but before all the tests had to pass.
I was having some problem with testing image_tag, and how to click on it, some googling, helped but still something was missing. The image_tag is used to have an icon with a plus, where you can click and then create a new event.
scenario 'Create a new event' do
expect(page).to have_content('Create new event')
fill_in 'Name', with: 'lala'
fill_in 'Day', with: Date.today
fill_in 'Event type', with: 'Workshop'
click_button 'Create event'
To finally do it, it was needed to use capybara find element, passing the CSS id, and the key was how to associate the CSS id to the image_tag method in the view
<%=link_to(image_tag("icons/add.png"), new_event_path, :id => "addIcon") %>
Once this is solved, and the other error messages from the failing tests read carefully (if you read carefully many times you manage to solve the problem) I got my 48 tests green 🙂
Next thing, commit changes in GIT, the last days I’m trying to be very clean with git, do small commits, play around with the stagging area sometimes, the push to my github repo.
Then a new Rails Q&A session, some understanding of what are concerns.
After hackership, time to go to the c-base 🙂 to meet a friend and continue talking about technology. A reminder is that this weekend takes place the International Activism Conference “Whatever happened to Privacy? ” with this program and held in Heinrich-Boell-Stiftung,Schumannstraße 8, 10117 Berlin.