Sha256: f512e4f1bdd5168c68e5d22b4519d580ab38a42e77235cea0cf04271f9bd5e6c
Contents?: true
Size: 453 Bytes
Versions: 5
Compression:
Stored size: 453 Bytes
Contents
describe "WLang::Dialect#post_transform" do let(:dialect){ WLang::Dialect.new("test", nil) } subject{ dialect.apply_post_transform("hello") } context "when a string has been installed" do before{ dialect.post_transformer = "plain-text/upcase" } it{ should == "HELLO" } end context "when a a has been installed" do before{ dialect.post_transformer = lambda{|txt| "yes!#{txt}"} } it{ should == "yes!hello" } end end
Version data entries
5 entries across 4 versions & 1 rubygems