Skip to content

Instantly share code, notes, and snippets.

@L2G
Created August 31, 2013 23:12
Show Gist options
  • Save L2G/6401246 to your computer and use it in GitHub Desktop.
Save L2G/6401246 to your computer and use it in GitHub Desktop.
A simple test of mountain_berry_fields (https://github.com/JoshCheek/mountain_berry_fields). I'm working on the RestClient gem and trying to use mbf to verify some code examples. I'm hitting a roadblock with this one, though: when I try to run it through mbf, I get the cryptic error message "NoMethodError undefined method `write' for File:Class"…
<% setup do %>
require './lib/restclient'
<% end %>
This is a test:
<% test 'generic test', with: :magic_comments do %>
response = RestClient.get 'http://l2g.github.com/'
response.code # => 200
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment