AWS Developer Blog

Tag: ruby

Using RSpec 3

Using RSpec 3 I have been a long time user of RSpec and many of the Ruby projects I work with use RSpec as the primary testing framework. It provides an expressive specification DSL. As you may know, RSpec 3 is currently in the works. I have blogged a few times recently about using MiniTest. […]

Read More

Ruby 2.0 on AWS OpsWorks

We are pleased to announce that AWS OpsWorks now supports Ruby 2.0. Simply select the Ruby version you want, your Rails stack – Passenger or Unicorn, the RubyGems version, and whether you want to use Bundler. Then deploy your app from your chosen repository – Git, Subversion, or bundles on S3. You can get started […]

Read More

AWS SDK for Ruby v1.30.0

Yesterday afternoon, we released a new version of the AWS SDK for Ruby (aws-sdk RubyGem) version v1.30.0. This release: Adds support for Amazon Kinesis (AWS::Kinesis::Client). Updates AWS::EMR::Client to include resource tagging and other new operations. Updates AWS::OpsWorks::Client to support resource-based permissions. Updates AWS::ElasticBeanstalk::Client to support worker roles. Updates AWS::DynamoDB::Client to support global secondary indexes. You […]

Read More

Using SimpleCov with Multiple Test Suites

It can be helpful to generate coverage reports when testing software. While coverage reports do not guarantee well tested software, they can highlight were test coverage is lacking. This is especially true for legacy, or un-tested projects. Recently I ran into a situation where I wanted to generate a coverage report, but the project used […]

Read More

Running Your Minitest Unit Test Suite

I have blogged a few times recently about Minitest. With Minitest you need to chose how you will execute your tests. When using other tools, like Rspec, there is a bundled test runner. $ rspec ………… Finished in 0.03324 seconds 12 examples, 0 failures Minitest does not provide a test runner as a command line […]

Read More

AWS re:Invent 2013 Talk Now Available

This week, talks from AWS re:Invent 2013 started to become available through YouTube and SlideShare. If you were at re:Invent this year, you may have seen Trevor and I give a talk on the new AWS SDK for Ruby V2. If you missed it, or if you just want to check it out again, the […]

Read More

From Minitest::Spec to Minitest::Test

In a previous blog post, I introduced Minitest from the perspective of RSpec. Some Minitest users prefer to avoid the specification style of Minitest::Spec. Instead they use Minitest::Test. It’s closer to the metal and uses a more vanilla Ruby syntax. Here is an example spec file using Minitest::Spec: require ‘spec_helper’ describe MyClass do describe ‘#some_method’ […]

Read More

From RSpec to Minitest

One of my favorite aspects of working with Ruby is how natural it is to write tests for. The Ruby community does an excellent job of encouraging authors to produce well tested code. There is a plethora of well supported tools to choose from. I like to joke that new Ruby developers write Micro test […]

Read More

AWS re:Invent 2013

AWS re:Invent is this week (November 12th-15th) in Las Vegas! We are excited to be here now, and to have an opportunity to talk to you in person. There is going to be a lot of great technical content year. Loren Segal and I will be presenting a session on Thursday called Diving Into the […]

Read More