0.0
No commit activity in last 3 years
No release in over 3 years
BDD for lolcats! Just require it in your Gemfile and you got funny specs for free!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 1.0.0
>= 1.4.0

Runtime

>= 2.0.0.beta.20
 Project Readme

cheezburger¶ ↑

RSpec for lolcats! BDD can be fun too :)

Just put it in your Gemfile:

gem "cheezburger"

And your RSpec files can now be written by cute kittehs (this are cheezburger’s own specs, just to see what you can do with it!)

discrieb "Cheezburger" do

  dey { Array.new }

  deyr(:class) { shud == Array }

  iz(:kitteh) { double('kitteh') }

  srsly "shud haz cheezburger" do # srsly maeks examplez :focused
    kitteh
    dey.shud_nawt be_nil

    dey.sez(:size).and_return(3)

    [3,4,2].shoodz haz(3).elements
    i_hoep {2 + 3}.twerk # twerk meanz to_nawt raise_error
    meh_hoeps {2 + 3}.to_nawt raise_error
    tihs {2 + 3}.shoodz_nawt raise_error
  end

  # Shared examplez!
  fings_dat_maeks "a kitteh" do
    I "haz cheez" do
      i_hoep { ['cheez', 'plz'] }.twerk
    end
  end

  it_maeks_tings_liek "a kitteh"

  discrieb "moar kool tings" do

    suroundid_bai "hyoominz" do
      I "shud liek karot" do
        laterz "lol"
      end
    end

    I "shud be kyoot" do
      dey.shud_get(:toothbrush).and_return("wrrrr")
      dey.shud_nawt_get(:confoozled).and_return("kthxbai")

      dey.toothbrush # => "wrrrrrr" kitteh iz kyoot
    end
  end

  fur_laterz "shud haz moar cheezburger"

end

Note on Patches/Pull Requests¶ ↑

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2010 Codegram. See LICENSE for details.