18 May 2013

The Ruby Reflector

Topic

RSpec

  Source Favicon
Email

…" Testing" section is the commands to run any of the test suites you have (e.g.: RSpec, Jasmine, Cucumber, Spinach) and any setup you need to do before-hand (e.g.: rake db:test:prepare). This section will be small but vital.

README: Staging and Production environments

The staging and production environment sections (one section per environment) should provide any information a developer might need to know about these environments.

Information you might want to include …

thefrontiergroup.com.au Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 4 months ago.
Email

Rspec/ Cucumber for testing

Skinny models, controllers, and a service layer

But his metaphor breaks down a little, because the second stack isn't really a stack:

A considerable minority uses a stack like this. It's important that the Prime Stack isn't exact: you might not use Cucumber at all, for example, or maybe you don't have a service layer.

On the (private, but cheap) Ruby Rogues "Parley" email list , I came up with …

gilesbowkett.blogspot.com Read
  Source Favicon
By chris of Binary Code 8 months ago.
Email

My Rspec specs suddenly stopped working with the following error: Failure/Error: Unable to find matching line from backtrace DRb::DRbConnError: druby://127.0.0.1:8989 - #

Oddly, the first two tests were working, then the rest exploded. Turns out the culprit was raising an exception in the initialize() method of the class being tested, like so: def initialize( account ) raise if !account.kind_of?( UserAccount ) ... end

The first two tests tested the exception state, like …

postal-code.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 16 days ago.
Email

Starter App - Using ruby 2, Rails 4, PostgreSQL, RSpec, and Bootstrap.

Callback logging - Some diagnostic code I whipped up yesterday to add ActiveRecord callbacks to the development log.

activerecord-callback_notification - This one didn't do quite what I want, but I borrowed some of its code to start from.

Instrument Anything in Rails 3 - A good introduction to ActiveSupport::Notifications.

callback_skipper - Short-circuit …

afreshcup.com Read
  Source Favicon
By Lee of Blog | The Working Group 17 days ago.
Email

Write tests with UnitTest, RSpec or some other test-driven framework

Additional Desirable Business Competencies

Comfortable working with business model canvases such as Lean Canvas

Experience developing design requirements for a Minimum Viable Product ( MVP)

Education Requirements

Undergraduate Computer Programming degree

2+ years in a professional environment providing full-service web and mobile shop services, including application design, software development testing …

blog.twg.ca Read
  Source Favicon
By Fabio Akita of RubyLearning Blog 10 months ago.
Email

…valores diferntes dependendo da localização escolhida atualmente. If we would add an Rspec spec to cover this behavior, it would look like this: describe Article do before(:each) do I18n.locale = :en @ article = Article.create title: "Hello World", body: "Test" I18n.locale = :"pt-BR" @article.update_attributes(title: "Ola Mundo", body: "Teste") end

context "translations" do it …

rubylearning.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 1 month ago.
Email

pestilence - Some nasty JavaScript tricks.

splinter - Additional syntactic sugar for Capybara and RSpec.

Jeff's Guide to Installing Ruby on Rails - Starting point for beginners. SignedForm - Attach digital signatures to forms in Rails to synchronize permitted fields with your application with no further code.

afreshcup.com Read
  Source Favicon
By James Schorr of RubyLearning Blog 10 months ago.
Email

…real-world progress can be made towards better securing code with the usage of tools/methods such as: Rspec and friends, TDD, BDD, etc.

Human Testing: sometimes nothing beats enlisting the help of others to pound away on our beloved projects. You'd be surprised by how many issues are found by this approach, often leading to cries of, "But users aren't supposed to do that!"

Non-technical users: enlist someone who can has a hard time finding the / key. This type of …

rubylearning.com Read
  Source Favicon
By David of David Chelimsky 10 months ago.
Email

full changelog

Enhancements

The generated spec/spec_helper.rb sets config.order = "random" so that specs run in random order by default.

rename render_template to have_rendered (and alias to render_template for backward compatibility)

Bug fixes

"uninitialized constant" errors are avoided when using using gems like rspec-rails-uncommitted that define Rspec:: Rails before rspec-rails loads ( Andy Lindeman)

blog.davidchelimsky.net Read
  Source Favicon
On Ruby on Rails Tutorial News 1 month ago.
Email

…series. That will involve some more extensive changes, including the incorporation of a new spec syntax supported by the latest version of RSpec (so-called feature specs ). I expect this to happen some time later this year.

To get future announcements delivered to your inbox, subscribe to get email notifications. (Google apparently doesn't believe in RSS, but I do, so you can also subscribe to the news feed .)

railstutorial.org Read